078e754e1083fc27dbd154ded312a4f74c70c65f
[openwrt/openwrt.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 Build/Clean
11 endef
12
13 define Image/Prepare
14 $(CP) $(LINUX_DIR)/arch/i386/boot/bzImage $(KDIR)/bzImage
15 endef
16
17 define Image/Build
18 touch $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img
19 $(STAGING_DIR)/bin/airlink -b 0 -j $(KDIR)/bzImage $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img
20 endef
21
22 $(eval $(call BuildImage))