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
|
2010-06-19 01:12:33 +03:00
|
|
|
cp $(LINUX_DIR)/arch/arm/boot/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
|
2007-03-04 19:29:44 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Image/Build
|
|
|
|
$(call Image/Build/$(1),$(1))
|
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))
|