cc31e016359d9c41bc6984f53b38fce9b13ac3f3
[openwrt/openwrt.git] / target / linux / arm64 / image / boot-wrapper / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=aarch64-boot-wrapper
11 PKG_VERSION:=2013-01-10
12 PKG_RELEASE:=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/mark/boot-wrapper-aarch64.git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_VERSION:=c51dde817b5ed5b8f741b67ac51bd67bd87b4a2a
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19 PKG_MAINTAINER:=Florian Fainelli <florian@openwrt.org>
20
21 include $(INCLUDE_DIR)/kernel.mk
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/image.mk
24
25 define Build/Compile
26 $(MAKE) -C $(PKG_BUILD_DIR) \
27 KERNEL="../Image" \
28 DTC="$(LINUX_DIR)/scripts/dtc/dtc" \
29 FDT_SRC="$(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/dts/arm/foundation-v8.dts" \
30 CROSS_COMPILE="$(TARGET_CROSS)" \
31 BOOTARGS="console=ttyAMA0 earlyprintk"
32 endef
33
34 define Build/InstallDev
35 $(CP) $(PKG_BUILD_DIR)/linux-system.axf $(KDIR)/linux-system.axf
36 endef
37
38 $(eval $(call Build/DefaultTargets))