2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/image.mk
12 $(MAKE) -C romboot clean
13 $(MAKE) -C u-boot clean
17 $(MAKE) -C romboot compile
18 # $(MAKE) -C u-boot configure
19 $(MAKE) -C u-boot compile
23 cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage
24 cp $(KDIR)/romboot/romboot.bin $(KDIR)/romboot.bin
25 cp $(KDIR)/u-boot-1.1.4/u-boot.bin $(KDIR)/u-boot.bin
26 cat $(KDIR)/romboot/romboot.block $(KDIR)/u-boot-1.1.4/u-boot.block > $(KDIR)/loaders.block
29 define Image/BuildKernel
30 cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-uImage
34 $(call Image/Build/$(1),$(1))
37 $(eval $(call BuildImage))