Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Copyright (C) 2013 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=aarch64-boot-wrapper
  9. PKG_VERSION:=2013-01-10
  10. PKG_RELEASE:=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/boot-wrapper-aarch64.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=c51dde817b5ed5b8f741b67ac51bd67bd87b4a2a
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  16. PKG_MAINTAINER:=Florian Fainelli <florian@openwrt.org>
  17. include $(INCLUDE_DIR)/kernel.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/image.mk
  20. define Build/Compile
  21. $(MAKE) -C $(PKG_BUILD_DIR) \
  22. KERNEL="../Image" \
  23. DTC="$(LINUX_DIR)/scripts/dtc/dtc" \
  24. FDT_SRC="$(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/dts/arm/foundation-v8.dts" \
  25. CROSS_COMPILE="$(TARGET_CROSS)" \
  26. BOOTARGS="console=ttyAMA0 earlyprintk"
  27. endef
  28. define Build/InstallDev
  29. $(CP) $(PKG_BUILD_DIR)/linux-system.axf $(KDIR)/linux-system.axf
  30. endef
  31. $(eval $(call Build/DefaultTargets))