common.mk 1.3 KB

123456789101112131415161718192021222324252627
  1. ifndef COMMON_MK
  2. COMMON_MK := 1
  3. #Place all shared make vars below
  4. #=========================================================================================
  5. PRAWNOS_BUILD := $(PRAWNOS_ROOT)/build
  6. PRAWNOS_LOCAL_APT_REPO := $(PRAWNOS_BUILD)/prawnos-local-apt-repo
  7. PRAWNOS_LOCAL_APT_SOURCE := "deb [trusted=yes] file://$(PRAWNOS_LOCAL_APT_REPO) ./"
  8. PRAWNOS_SCRIPTS := $(PRAWNOS_ROOT)/scripts
  9. PRAWNOS_PACKAGE_SCRIPTS := $(PRAWNOS_SCRIPTS)/PackageScripts
  10. PRAWNOS_PACKAGE_SCRIPTS_INSTALL_PACKAGE := $(PRAWNOS_SCRIPTS)/PackageScripts/installPackage.sh
  11. PRAWNOS_PACKAGE_SCRIPTS_PBUILD_PACKAGE := $(PRAWNOS_SCRIPTS)/PackageScripts/pbuildPackage.sh
  12. PRAWNOS_PACKAGE_SCRIPTS_UPLOAD_PACKAGE := $(PRAWNOS_SCRIPTS)/PackageScripts/uploadPackage.sh
  13. PBUILDER_DIR := $(PRAWNOS_ROOT)/resources/BuildResources/pbuilder
  14. PBUILDER_CHROOT := $(PRAWNOS_BUILD)/prawnos-pbuilder-armhf-base.tgz
  15. PBUILDER_RC := $(PBUILDER_DIR)/prawnos-pbuilder.rc
  16. PBUILDER_HOOKS := $(PBUILDER_DIR)/hooks
  17. PBUILDER_VARS := $(PBUILDER_CHROOT) $(PBUILDER_RC) $(PBUILDER_HOOKS)
  18. PRAWNOS_LOCAL_APT_VARS := $(PRAWNOS_LOCAL_APT_REPO) $(PRAWNOS_LOCAL_APT_SOURCE)
  19. # Otherwise errors are ignored when output is piped to tee:
  20. SHELL := /bin/bash -o pipefail
  21. #=========================================================================================
  22. endif # COMMON_MK