X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/f56b55940b85b85eab5b3c98eb2a65962657d3b7..adde7768a2eab2950a7628319ec832c63a00ff03:/target/linux/rdc/image/Makefile?ds=sidebyside diff --git a/target/linux/rdc/image/Makefile b/target/linux/rdc/image/Makefile index 4d8c5fda3..a8ad09966 100644 --- a/target/linux/rdc/image/Makefile +++ b/target/linux/rdc/image/Makefile @@ -7,8 +7,14 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk +ifeq ($(CONFIG_LINUX_2_6_23),y) +ARCH_PATH=i386 +else +ARCH_PATH=x86 +endif + define Image/Prepare - $(CP) $(LINUX_DIR)/arch/i386/boot/bzImage $(KDIR)/bzImage + $(CP) $(LINUX_DIR)/arch/$(ARCH_PATH)/boot/bzImage $(KDIR)/bzImage endef define trxalign/jffs2-128k @@ -23,10 +29,12 @@ endef define Image/Build/ar525w touch $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img + touch $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2)-web.img mv $(KDIR)/root.$(1) $(KDIR)/root.tmp dd of=$(KDIR)/root.$(1) if=$(KDIR)/root.tmp $(call trxalign/$(1)) conv=sync $(RM) $(KDIR)/root.tmp $(STAGING_DIR_HOST)/bin/airlink -b 1 -j $(shell bash -c 'echo $$[$(3)]') $(KDIR)/bzImage $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img + $(STAGING_DIR_HOST)/bin/airlink -e -b 1 -j $(shell bash -c 'echo $$[$(3)]') $(KDIR)/bzImage $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2)-web.img endef define Image/Build/wl153