summaryrefslogtreecommitdiff
path: root/target/x86_64
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2012-01-12 19:36:37 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2012-01-15 11:23:46 +0100
commit6e06191abda82fa771eeec309cb529c1dad26cef (patch)
tree926246a398f4a63559e69482adf4f21eff1a66fd /target/x86_64
parent51a0c4d0d98e758c9e7d4d06f2580d8e92ed3caf (diff)
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. ;)
Diffstat (limited to 'target/x86_64')
-rw-r--r--target/x86_64/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/x86_64/Makefile b/target/x86_64/Makefile
index 9a834219e..c5e488943 100644
--- a/target/x86_64/Makefile
+++ b/target/x86_64/Makefile
@@ -36,7 +36,7 @@ ifeq ($(ADK_TARGET_SYSTEM_QEMU_X86_64),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 file is: $(BIN_DIR)/${TARGET_KERNEL}'
ifeq ($(ADK_TARGET_SYSTEM_QEMU_X86_64),y)