diff --git a/am43xx.mk b/am43xx.mk index 9d60ea0040867fe3c458bf1bb8c147c1f6bbe921..d608899a92340eb315674bbac69352bb9c05520e 100644 --- a/am43xx.mk +++ b/am43xx.mk @@ -8,6 +8,9 @@ override COMPILE_NS_KERNEL := 32 override COMPILE_S_USER := 32 override COMPILE_S_KERNEL := 32 +# Need to set this before including common.mk +BUILDROOT_GETTY_PORT ?= ttyS0 + ############################################################################### # Includes ############################################################################### @@ -28,7 +31,6 @@ FIT_MAKEFILE ?= $(BUILD_PATH)/ti/Makefile OPTEE_PLATFORM ?= ti-am43xx U-BOOT_CONFIG ?= am43xx_hs_evm_defconfig CONFIG_TYPE ?= ti_sdk_am4x_debug -BUSYBOX_TARGET ?= am43xx ############################################################################### # Include common to TI builds diff --git a/am57xx.mk b/am57xx.mk index 5181b95b2d8a3d802e165d170ba20003a0ec8851..dac9f30be5d834db443f246e4e6d45403c7e7f9c 100644 --- a/am57xx.mk +++ b/am57xx.mk @@ -8,6 +8,9 @@ override COMPILE_NS_KERNEL := 32 override COMPILE_S_USER := 32 override COMPILE_S_KERNEL := 32 +# Need to set this before including common.mk +BUILDROOT_GETTY_PORT ?= ttyS2 + ############################################################################### # Includes ############################################################################### @@ -29,7 +32,6 @@ OPTEE_PLATFORM ?= ti-am57xx U-BOOT_CONFIG ?= am57xx_hs_evm_defconfig # using the same configs as for DRA7xx CONFIG_TYPE ?= ti_sdk_dra7x_debug -BUSYBOX_TARGET ?= dra7xx ############################################################################### # Include common to TI builds diff --git a/common.mk b/common.mk index 7d25cb790e2024428a6abd031c98f4941bdbd14d..39d28784ed8e56aaa2018aa8a585b306e09d4802 100644 --- a/common.mk +++ b/common.mk @@ -20,6 +20,7 @@ OPTEE_EXAMPLES_PATH ?= $(ROOT)/optee_examples BENCHMARK_APP_PATH ?= $(ROOT)/optee_benchmark BENCHMARK_APP_OUT ?= $(BENCHMARK_APP_PATH)/out LIBYAML_LIB_OUT ?= $(BENCHMARK_APP_OUT)/libyaml/out/lib +BUILDROOT_TARGET_ROOT ?= $(ROOT)/out-br/target # default high verbosity. slow uarts shall specify lower if prefered CFG_TEE_CORE_LOG_LEVEL ?= 3 diff --git a/dra7xx.mk b/dra7xx.mk index f547296ca293992ad21be748e4fe9972df9e6dcd..e7f8a590a3576c0cf9807c419c141c6fb318ef8f 100644 --- a/dra7xx.mk +++ b/dra7xx.mk @@ -8,6 +8,9 @@ override COMPILE_NS_KERNEL := 32 override COMPILE_S_USER := 32 override COMPILE_S_KERNEL := 32 +# Need to set this before including common.mk +BUILDROOT_GETTY_PORT ?= ttyS0 + ############################################################################### # Includes ############################################################################### @@ -28,7 +31,6 @@ FIT_MAKEFILE ?= $(BUILD_PATH)/ti/Makefile OPTEE_PLATFORM ?= ti-dra7xx U-BOOT_CONFIG ?= dra7xx_hs_evm_defconfig CONFIG_TYPE ?= ti_sdk_dra7x_debug -BUSYBOX_TARGET ?= dra7xx ############################################################################### # Include common to TI builds diff --git a/ti/ti-common.mk b/ti/ti-common.mk index bea9ac7049681879501bc44b0059d5a9cb377cbc..27ebceb6636b63906d7386abd3e0cee7177a4e7c 100644 --- a/ti/ti-common.mk +++ b/ti/ti-common.mk @@ -3,10 +3,8 @@ ############################################################################### .PHONY: all clean cleaner prepare -all: u-boot linux optee-os optee-client xtest build-fit \ - update_rootfs optee-examples -clean: linux-clean busybox-clean u-boot-clean optee-os-clean \ - optee-client-clean build-fit-clean optee-examples-clean +all: u-boot linux optee-os build-fit buildroot +clean: linux-clean u-boot-clean optee-os-clean build-fit-clean buildroot-clean cleaner: clean prepare-cleaner busybox-cleaner linux-cleaner include toolchain.mk @@ -66,34 +64,6 @@ optee-os-clean: optee-os-clean-common optee-client: optee-client-common optee-client-clean: optee-client-clean-common -############################################################################### -# xtest / optee_test -############################################################################### -.PHONY: xtest xtest-clean xtest-patch - -xtest: xtest-common -xtest-clean: xtest-clean-common -xtest-patch: xtest-patch-common - -################################################################################ -# Sample applications / optee_examples -################################################################################ -optee-examples: optee-examples-common - -optee-examples-clean: optee-examples-clean-common - -############################################################################### -# Busybox -############################################################################### -.PHONY: busybox busybox-clean busybox-cleaner - -BUSYBOX_COMMON_TARGET = $(BUSYBOX_TARGET) -BUSYBOX_CLEAN_COMMON_TARGET = $(BUSYBOX_COMMON_TARGET) clean - -busybox: busybox-common -busybox-clean: busybox-clean-common -busybox-cleaner: busybox-cleaner-common - ############################################################################### # Build FIT ############################################################################### @@ -117,12 +87,15 @@ build-fit-clean: ############################################################################### # Root FS ############################################################################### -.PHONY: filelist-tee update_rootfs - -filelist-tee: filelist-tee-common u-boot build-fit - @echo "dir /boot 755 0 0" >> $(GEN_ROOTFS_FILELIST) - @echo "file /boot/MLO $(UBOOT_SPL) 644 0 0" >> $(GEN_ROOTFS_FILELIST) - @echo "file /boot/u-boot.img $(UBOOT_IMG) 644 0 0" >> $(GEN_ROOTFS_FILELIST) - @echo "file /boot/fitImage $(STAGING_AREA)/fitImage 644 0 0" >> $(GEN_ROOTFS_FILELIST) - -update_rootfs: update_rootfs-common +.PHONY: update_rootfs +# Make sure this is built before the buildroot target which will create the +# root file system based on what's in $(BUILDROOT_TARGET_ROOT) +buildroot: update_rootfs + +update_rootfs: u-boot build-fit + @mkdir -p --mode=755 $(BUILDROOT_TARGET_ROOT)/boot + @install -v -p --mode=644 $(UBOOT_SPL) $(BUILDROOT_TARGET_ROOT)/boot/MLO + @install -v -p --mode=644 $(UBOOT_IMG) \ + $(BUILDROOT_TARGET_ROOT)/boot/u-boot.img + @install -v -p --mode=644 $(STAGING_AREA)/fitImage \ + $(BUILDROOT_TARGET_ROOT)/boot/fitImage