Add initial version of the new Image Builder It's still a bit rough in a few places...
[openwrt/staging/rmilecki.git] / target / linux / x86-2.6 / image / Makefile
index e1425676dd693eb75f4d1febe2d0d00d1bec68e6..44c2ff7e3b2b4bbca9e5129a96160b5122b7c902 100644 (file)
@@ -49,10 +49,14 @@ ifeq ($(CONFIG_X86_GRUB_IMAGES),y)
   endef
 endif
 
+define Image/Prepare
+       cp $(LINUX_DIR)/arch/i386/boot/bzImage $(KDIR)/bzImage
+endef
+
 define Image/Build
        $(call Image/Build/grub,$(1))
        cp $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).fs
-       cp $(LINUX_DIR)/arch/i386/boot/bzImage $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz
+       cp $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz
 endef
 
 $(eval $(call BuildImage))