clean up a few things in image build makefiles and fix unnecessary grub rebuilds
[openwrt/svn-archive/archive.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
15 touch $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img
16 $(STAGING_DIR)/bin/airlink -b 0 -j $(KDIR)/bzImage $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img
17 endef
18
19 $(eval $(call BuildImage))