From 6e06191abda82fa771eeec309cb529c1dad26cef Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 12 Jan 2012 19:36:37 +0100 Subject: mk/image.mk: improve and simplify initramfs generation Using the kernel tools is a lot better than calling cpio ourselfs, as this way we can have it create device nodes for us. So no need to reopen /dev/console and things like that. While here, fix also initramfs compression (untested), as in my experience the kernel drops all symbols regarding compression from it's .config in the first compile phase. Probably one should make the actual compression algorithm configurable (and ideally depending on what the kernel supports for the given architecture). This is a rough hack based on what I'm using in the custom viprinux build file, so something like this is already running somewhere. ;) --- target/ppc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/ppc/Makefile') diff --git a/target/ppc/Makefile b/target/ppc/Makefile index 47a4b7df1..bbf95008f 100644 --- a/target/ppc/Makefile +++ b/target/ppc/Makefile @@ -33,7 +33,7 @@ ifeq ($(ADK_TARGET_SYSTEM_QEMU_PPC),y) endif endif ifeq ($(ADK_TARGET_FS),initramfs-piggyback) -imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs +imageinstall: createinitramfs @cp $(KERNEL) $(BIN_DIR)/${TARGET_KERNEL} @echo 'The kernel+initramfs file is: $(BIN_DIR)/${TARGET_KERNEL}' ifeq ($(ADK_TARGET_SYSTEM_QEMU_PPC),y) -- cgit v1.2.3