Skip to content

Commit

Permalink
qemu_v8: add uImage target
Browse files Browse the repository at this point in the history
"make linux" builds the kernel but is not sufficient to prepare all
files for "make run-only". On the other hand, "make run" does a bit
too many things to be used comfortably when working on the kernel.

Therefore, add target uImage which generates the kernel image ready
to be used by U-Boot. With that, kernel development and testing can
be done with the following sequence:

 1. make
 2. Edit kernel sources
 3. make -j$(nproc) uImage
 4. make run-only
 5. Go to 2 -- repeat as needed

Signed-off-by: Jerome Forissier <[email protected]>
Reviewed-by: Jens Wiklander <[email protected]>
  • Loading branch information
jforissier committed Aug 24, 2023
1 parent c750a23 commit 6b7da31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qemu_v8.mk
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ $(KERNEL_UIMAGE): u-boot linux | $(BINARIES_PATH)
-n "Linux kernel" \
-d $(BINARIES_PATH)/linux.bin $(KERNEL_UIMAGE)

.PHONY: uImage
uImage: $(KERNEL_UIMAGE)

$(ROOTFS_UGZ): u-boot buildroot | $(BINARIES_PATH)
ln -sf $(ROOT)/out-br/images/rootfs.cpio.gz $(BINARIES_PATH)
$(MKIMAGE_PATH)/mkimage -A arm64 \
Expand Down

0 comments on commit 6b7da31

Please sign in to comment.