Root/target/linux/at91/image/Makefile

1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8include $(INCLUDE_DIR)/image.mk
9
10define Build/Clean
11    $(MAKE) -C u-boot clean
12endef
13
14define Build/Compile
15    if [ $(CONFIG_AT91_UBOOT) ]; then \
16        $(MAKE) -C u-boot compile; \
17    fi
18endef
19
20define Image/Prepare
21endef
22
23define Image/BuildKernel
24    mkdir -p $(BIN_DIR)
25    mkimage -A arm -T kernel -C none -a 0x20008000 -e 0x20008000 -n linux-2.6 \
26        -d $(LINUX_DIR)/arch/arm/boot/Image $(BIN_DIR)/$(IMG_PREFIX)-uImage
27    if [ $(CONFIG_FLEXIBITY_ROOT) ]; then \
28        $(INSTALL_BIN) $(BIN_DIR)/$(IMG_PREFIX)-uImage $(TARGET_DIR)/uImage ; \
29    fi
30endef
31
32define Image/Build
33    $(call Image/Build/$(1),$(1))
34    mkdir -p $(BIN_DIR)
35    cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-root.$(1)
36endef
37
38$(eval $(call BuildImage))
39

Archive Download this file



interactive