2007-03-04 17:29:44 +00:00
|
|
|
#
|
2010-04-12 23:15:56 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2007-03-04 17:29:44 +00: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 11:32:38 +00:00
|
|
|
$(MAKE) -C u-boot clean
|
2007-03-20 09:59:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2010-07-22 11:32:38 +00:00
|
|
|
if [ $(CONFIG_AT91_UBOOT) ]; then \
|
|
|
|
$(MAKE) -C u-boot compile; \
|
|
|
|
fi
|
2007-03-04 17:29:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Image/Prepare
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Image/BuildKernel
|
2010-06-18 22:12:33 +00:00
|
|
|
cp $(LINUX_DIR)/arch/arm/boot/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
|
2007-03-04 17:29:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Image/Build
|
|
|
|
$(call Image/Build/$(1),$(1))
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildImage))
|