From 6b7da31dfa94bc90d5b45b5cafcfb00ec07bcc02 Mon Sep 17 00:00:00 2001 From: Jerome Forissier Date: Thu, 24 Aug 2023 09:38:10 +0200 Subject: [PATCH] qemu_v8: add uImage target "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 Reviewed-by: Jens Wiklander --- qemu_v8.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qemu_v8.mk b/qemu_v8.mk index 74515f32..b66b0018 100644 --- a/qemu_v8.mk +++ b/qemu_v8.mk @@ -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 \