2007-03-04 19:29:44 +02:00
|
|
|
#
|
2010-04-13 02:15:56 +03:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2007-03-04 19:29:44 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
|
|
|
|
define Build/Clean
|
2010-07-22 14:32:38 +03:00
|
|
|
$(MAKE) -C u-boot clean
|
2007-03-20 11:59:17 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2010-07-22 14:32:38 +03:00
|
|
|
if [ $(CONFIG_AT91_UBOOT) ]; then \
|
|
|
|
$(MAKE) -C u-boot compile; \
|
|
|
|
fi
|
2007-03-04 19:29:44 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Image/Prepare
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Image/BuildKernel
|
2012-04-20 16:27:16 +03:00
|
|
|
mkdir -p $(BIN_DIR)
|
2010-10-11 19:31:47 +03:00
|
|
|
mkimage -A arm -T kernel -C none -a 0x20008000 -e 0x20008000 -n linux-2.6 \
|
|
|
|
-d $(LINUX_DIR)/arch/arm/boot/Image $(BIN_DIR)/$(IMG_PREFIX)-uImage
|
2011-07-03 21:51:59 +03:00
|
|
|
if [ $(CONFIG_FLEXIBITY_ROOT) ]; then \
|
|
|
|
$(INSTALL_BIN) $(BIN_DIR)/$(IMG_PREFIX)-uImage $(TARGET_DIR)/uImage ; \
|
|
|
|
fi
|
2007-03-04 19:29:44 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Image/Build
|
|
|
|
$(call Image/Build/$(1),$(1))
|
2012-04-20 16:27:16 +03:00
|
|
|
mkdir -p $(BIN_DIR)
|
2010-10-11 19:31:39 +03:00
|
|
|
cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-root.$(1)
|
2007-03-04 19:29:44 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildImage))
|