aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2019-08-02 20:35:08 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2019-08-02 20:35:08 +0200
commitbf6e79db8b7516a245ab93b48bb55e1480520b49 (patch)
treeae3613e508f9444ae9394153eeae6dc965f4e2b3 /package
parent6d79e097e9d3d18e85ecbf4f37b71eb09c1998cf (diff)
downloadupstream-bf6e79db8b7516a245ab93b48bb55e1480520b49.tar.gz
upstream-bf6e79db8b7516a245ab93b48bb55e1480520b49.tar.bz2
upstream-bf6e79db8b7516a245ab93b48bb55e1480520b49.zip
brcm27xx-armstub: add new package
This package is needed for RPi 4B AARCH64 support Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/brcm27xx-armstub/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/package/kernel/brcm27xx-armstub/Makefile b/package/kernel/brcm27xx-armstub/Makefile
new file mode 100644
index 0000000000..c6e0746dc0
--- /dev/null
+++ b/package/kernel/brcm27xx-armstub/Makefile
@@ -0,0 +1,54 @@
+#
+# Copyright (C) 2019 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=brcm27xx-armstub
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL=https://github.com/raspberrypi/tools
+PKG_SOURCE_DATE:=2019-05-09
+PKG_SOURCE_VERSION:=49719d5544cd33b8c146235e1420f68cd92420fe
+PKG_MIRROR_HASH:=91e9d14b5f3d7ce7486de7199d15234ce46ead3d87decce77466cd2f28b9e085
+
+PKG_FLAGS:=nonshared
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/brcm27xx-armstub
+ SECTION:=boot
+ CATEGORY:=Boot Loaders
+ TITLE:=brcm27xx-armstub
+ DEPENDS:=@TARGET_brcm2708
+endef
+
+define Package/brcm27xx-armstub/description
+ ARM stubs for brcm27xx.
+endef
+
+MAKE_PATH = armstubs
+
+MAKE_FLAGS += \
+ CC8=$(TARGET_CC) \
+ LD8=$(TARGET_CROSS)ld \
+ OBJCOPY8=$(TARGET_CROSS)objcopy \
+ OBJDUMP8=$(TARGET_CROSS)objdump
+
+define Build/Compile
+ $(call Build/Compile/Default,armstub8-gic.elf armstub8-gic.bin)
+endef
+
+define Build/InstallDev
+ $(CP) $(PKG_BUILD_DIR)/armstubs/armstub8-gic.bin $(KERNEL_BUILD_DIR)
+endef
+
+define Package/brcm27xx-armstub/install
+ true
+endef
+
+$(eval $(call BuildPackage,brcm27xx-armstub))