From 0d9ce5977d5247a73c2e0a5e46bb591d52cd198c Mon Sep 17 00:00:00 2001 From: xX7 <5272979+xX7@users.noreply.github.com> Date: Sun, 4 Dec 2022 13:50:23 +0100 Subject: [PATCH] - Implemented makefile for standalone freertos (neneco) - Adjusted U-Boot config to support cach commands - Updated freertos nenco submodule --- Makefile | 5 +++-- freertos_standalone.mk | 6 ++++++ platform.mk | 1 + src/freertos-neneco-hartstone | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 freertos_standalone.mk diff --git a/Makefile b/Makefile index f9ee459..a9d35c8 100644 --- a/Makefile +++ b/Makefile @@ -8,14 +8,15 @@ srcPath:=$(curPath)/src imgPath:=$(curPath)/sdcard confPath:=$(curPath)/configs -all: dir platform freertos linux bao +all: dir platform freertos freertos_standalone linux bao dir: @mkdir -p $(imgPath) include platform.mk include freertos.mk +include freertos_standalone.mk include linux.mk include bao.mk -.PHONY: dir all freertos +.PHONY: dir all freertos freertos_standalone diff --git a/freertos_standalone.mk b/freertos_standalone.mk new file mode 100644 index 0000000..5bfe220 --- /dev/null +++ b/freertos_standalone.mk @@ -0,0 +1,6 @@ +freertos_st_src:=$(srcPath)/freertos-neneco-hartstone +freertos_st_dest_image:=$(imgPath)/freertos_standalone.elf + +freertos_standalone $(freertos_st_dest_image): $(freertos_st_src) + $(MAKE) -C $(freertos_st_src)/RPI4_drivers/neneco + cp $(freertos_st_src)/RPI4_drivers/neneco/neneco.elf $(freertos_st_dest_image) \ No newline at end of file diff --git a/platform.mk b/platform.mk index 5d71d4d..061d7cc 100644 --- a/platform.mk +++ b/platform.mk @@ -18,6 +18,7 @@ atf $(atf_dest_image): $(atf_src) u-boot $(uboot_dest_image): $(uboot_src) $(MAKE) -C $(uboot_src) $(uboot_defconfig) + echo 'CONFIG_CMD_CACHE=y' >> $(uboot_src)/.config $(MAKE) -C $(uboot_src) -j$(nproc) cp $(uboot_src)/u-boot.bin $(uboot_dest_image) diff --git a/src/freertos-neneco-hartstone b/src/freertos-neneco-hartstone index d44c410..de93f12 160000 --- a/src/freertos-neneco-hartstone +++ b/src/freertos-neneco-hartstone @@ -1 +1 @@ -Subproject commit d44c41058785a35d677f0b12b99d92a8cba391ce +Subproject commit de93f12eac74acf265add2a76aeab9cfcb7787b5