Skip to content

Commit

Permalink
- Implemented makefile for standalone freertos (neneco)
Browse files Browse the repository at this point in the history
- Adjusted U-Boot config to support cach commands
-  Updated freertos nenco submodule
  • Loading branch information
xX7 committed Dec 4, 2022
1 parent 2c0548d commit 0d9ce59
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions freertos_standalone.mk
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions platform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/freertos-neneco-hartstone

0 comments on commit 0d9ce59

Please sign in to comment.