X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Frb532-2.6%2Fimage%2FMakefile;h=49072144692dcc7da46ae556f7df244be7e983f0;hb=440a0b6f4ad94c56cadaf9d45ab79f62ebbe7f3d;hp=27e4357a8336d94919d34eebb4d6193f904b3d00;hpb=da4077f1bc0dadf4dfa7633761c53aed8ca0f2c7;p=openwrt-10.03%2F.git diff --git a/target/linux/rb532-2.6/image/Makefile b/target/linux/rb532-2.6/image/Makefile index 27e4357a8..490721446 100644 --- a/target/linux/rb532-2.6/image/Makefile +++ b/target/linux/rb532-2.6/image/Makefile @@ -20,17 +20,16 @@ LOADER_MAKEOPTS= \ RAMSIZE=$(RAMSIZE) \ IMAGE_COPY=$(IMAGE_COPY) +define Build/Compile + $(CC) -o $(STAGING_DIR)/bin/patch-cmdline $(PLATFORM_DIR)/src/patch-cmdline.c +endef + define Build/Clean $(MAKE) -C ../../generic-2.6/image/lzma-loader $(LOADER_MAKEOPTS) clean endef -CMDLINE_SIZE=512 -CMDLINE_OFFSET=4112 - define Image/Prepare - echo 'root=/dev/cfa2 ' | \ - dd bs=$(CMDLINE_SIZE) count=1 conv=sync | \ - dd of=$(LINUX_DIR)/vmlinux bs=$(CMDLINE_OFFSET) conv=notrunc seek=1 + $(STAGING_DIR)/bin/patch-cmdline $(LINUX_DIR)/vmlinux 'root=/dev/cfa2 ' $(KERNEL_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL) endef @@ -56,9 +55,7 @@ root=/dev/cfa2 rootfstype=ext2 endef define Image/Build - echo '$(strip $(call Image/cmdline/$(1))) ' | \ - dd bs=$(CMDLINE_SIZE) count=1 conv=sync | \ - dd of=$(LINUX_DIR)/vmlinux bs=$(CMDLINE_OFFSET) conv=notrunc seek=1 + $(STAGING_DIR)/bin/patch-cmdline $(LINUX_DIR)/vmlinux '$(strip $(call Image/cmdline/$(1))) ' ( \ echo -ne OWRT | dd bs=$$$$((0x1be)) conv=sync; \ ( \