Skip to content

Commit

Permalink
build: rootfs will be built at every bootimages and run_qemu
Browse files Browse the repository at this point in the history
This will cause the updated rootfs folder eg. work/evalsoc/buildroot_initramfs_sysroot
content changes will be generated into work/evalsoc/boot/uInitrd.lz4
and S03net file copy also changed to initrd generation process

Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Dec 5, 2024
1 parent 6cecb5a commit a3280dc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ $(vmlinux): linux
$(linux_image): linux
@echo "Linux image is generated $@"

initrd: $(initramfs)
@echo "initramfs cpio file is generated into $<"
$(initramfs): initrd
@echo "initramfs cpio file is generated into $@"

linux: $(linux_wrkdir)/.config
$(MAKE) -C $(linux_srcdir) O=$(linux_wrkdir) \
Expand All @@ -292,11 +292,13 @@ linux: $(linux_wrkdir)/.config
PATH=$(RVPATH) \
vmlinux Image

$(initramfs): $(buildroot_initramfs_sysroot) $(linux_image)
initrd: $(buildroot_initramfs_sysroot) $(linux_image)
$(INITRAMFS_PRECMD)
# Copy files required for xec network startup
[ -f $(confdir)/S03net ] && cp -af $(confdir)/S03net $(buildroot_initramfs_sysroot)/etc/init.d/ || true
cd $(linux_wrkdir) && \
$(linux_gen_initramfs) \
-o $@ -u $(shell id -u) -g $(shell id -g) \
-o $(initramfs) -u $(shell id -u) -g $(shell id -g) \
$(confdir)/initramfs.txt \
$(buildroot_initramfs_sysroot)

Expand Down

0 comments on commit a3280dc

Please sign in to comment.