summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXiaobo Gu <xiaobo.gu@amlogic.com>2015-12-18 14:21:25 +0800
committerXiaobo Gu <xiaobo.gu@amlogic.com>2015-12-18 17:38:27 +0800
commita270928821d8161be0fcb71c52666b60db12b901 (patch)
treeb88f42af7b32d5681562a17db95de2badc91793f /Makefile
parent72ca77a0d988fa9930580a449311a2ff9d283e07 (diff)
downloadu-boot-odroid-c1-a270928821d8161be0fcb71c52666b60db12b901.tar.gz
PD#116790: Support customer folder
a). Support customer folder(no matter exist or not) b). _defconfig and (config).h have 3 different place now. _defconfig: 1. configs/ 2. board/amlogic/defconfigs/ 3. customer/board/defconfigs/ (config).h: 1. include/configs/ 2. board/amlogic/configs/ 3. customer/board/configs/ Change-Id: I63858d32931b72b35ac8fc0702c8903e3d00d279
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index ac9ccae5cf..33e6c54354 100644
--- a/Makefile
+++ b/Makefile
@@ -654,7 +654,8 @@ libs-$(CONFIG_HAS_POST) += post/
libs-y += test/
libs-y += test/dm/
-libs-y += $(if $(BOARDDIR),board/$(BOARDDIR)/)
+#libs-y += $(if $(BOARDDIR),board/$(BOARDDIR)/)
+libs-y += $(if $(BOARDDIR),$(BOARDDIR)/)
libs-y := $(sort $(libs-y))
@@ -885,12 +886,12 @@ endif
.PHONY : acs.bin
acs.bin: tools prepare u-boot.bin
$(Q)$(MAKE) -C $(srctree)/$(CPUDIR)/${SOC}/firmware/acs all FIRMWARE=$@
- $(Q)cp $(buildtree)/board/${BOARDDIR}/firmware/acs.bin $(FIP_FOLDER_SOC)/acs.bin -f
+ $(Q)cp $(buildtree)/${BOARDDIR}/firmware/acs.bin $(FIP_FOLDER_SOC)/acs.bin -f
.PHONY : bl21.bin
bl21.bin: tools prepare u-boot.bin acs.bin
$(Q)$(MAKE) -C $(srctree)/$(CPUDIR)/${SOC}/firmware/bl21 all FIRMWARE=$@
- $(Q)cp $(buildtree)/board/${BOARDDIR}/firmware/bl21.bin $(FIP_FOLDER_SOC)/bl21.bin -f
+ $(Q)cp $(buildtree)/${BOARDDIR}/firmware/bl21.bin $(FIP_FOLDER_SOC)/bl21.bin -f
.PHONY : boot.bin
boot.bin: fip.bin
@@ -903,10 +904,10 @@ endif
$(Q)cat $(FIP_FOLDER_SOC)/bl2_new.bin $(FIP_FOLDER_SOC)/fip.bin > $(FIP_FOLDER_SOC)/boot_new.bin
$(Q)$(FIP_FOLDER_SOC)/aml_encrypt_$(SOC) --bootsig --input $(FIP_FOLDER_SOC)/boot_new.bin --output $(FIP_FOLDER_SOC)/u-boot.bin
ifeq ($(CONFIG_AML_CRYPTO_UBOOT), y)
- $(Q)$(FIP_FOLDER_SOC)/aml_encrypt_$(SOC) --bootsig --input $(FIP_FOLDER_SOC)/boot_new.bin --amluserkey $(srctree)/board/$(BOARDDIR)/aml-user-key.sig --aeskey enable --output $(FIP_FOLDER_SOC)/u-boot.bin.encrypt
+ $(Q)$(FIP_FOLDER_SOC)/aml_encrypt_$(SOC) --bootsig --input $(FIP_FOLDER_SOC)/boot_new.bin --amluserkey $(srctree)/$(BOARDDIR)/aml-user-key.sig --aeskey enable --output $(FIP_FOLDER_SOC)/u-boot.bin.encrypt
endif
ifeq ($(CONFIG_AML_CRYPTO_IMG), y)
- $(Q)$(FIP_FOLDER_SOC)/aml_encrypt_$(SOC) --imgsig --input $(srctree)/board/$(BOARDDIR)/boot.img --amluserkey $(srctree)/board/$(BOARDDIR)/aml-user-key.sig --output $(FIP_FOLDER_SOC)/boot.img.encrypt
+ $(Q)$(FIP_FOLDER_SOC)/aml_encrypt_$(SOC) --imgsig --input $(srctree)/$(BOARDDIR)/boot.img --amluserkey $(srctree)/$(BOARDDIR)/aml-user-key.sig --output $(FIP_FOLDER_SOC)/boot.img.encrypt
@cp -f $(FIP_FOLDER_SOC)/boot.img.encrypt $(FIP_FOLDER)/boot.img.encrypt
endif
@cp -f $(FIP_FOLDER_SOC)/u-boot.* $(FIP_FOLDER)/