Restore image creation for rdc boards
[openwrt-10.03/.git] / target / linux / rdc-2.6 / image / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/image.mk
9
10 define Image/Prepare
11         $(CP) $(LINUX_DIR)/arch/i386/boot/bzImage $(KDIR)/bzImage
12 endef
13
14 define Image/Build/Airlink
15         touch $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(3)-$(2).img
16         $(STAGING_DIR)/bin/airlink -b 1 -j 64 $(KDIR)/bzImage $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(3)-$(2).img
17 endef
18
19 define Image/Build
20         $(CP) $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).bzImage
21 ifneq ($(1),jffs2-128K)
22         $(call Image/Build/Airlink,$(1),ar525w,$(patsubst jffs2-%,jffs2,$(1)))
23 endif
24 endef
25
26 $(eval $(call BuildImage))