New program to generate u-boot parameter block with correct CRC to
[openwrt.git] / target / linux / at91-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
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/image.mk
10
11 define Build/Clean
12 $(MAKE) -C romboot clean
13 $(MAKE) -C u-boot clean
14 endef
15
16 define Build/Compile
17 $(MAKE) -C romboot compile
18 # $(MAKE) -C u-boot configure
19 $(MAKE) -C u-boot compile
20 endef
21
22 define Image/Prepare
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
27 endef
28
29 define Image/BuildKernel
30 cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-uImage
31 endef
32
33 define Image/Build
34 $(call Image/Build/$(1),$(1))
35 endef
36
37 $(eval $(call BuildImage))
This page took 0.039609 seconds and 5 git commands to generate.