summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-02-23 03:09:02 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-02-23 03:09:28 +0100
commitf423329ac0acb281e7a7dc673f7aa61c014ad0a6 (patch)
tree7ec67c4520f93aa54eecde7c472cc398c21acb9e /package
parent4e4d842354a34da9c1c9031a6cbc06ec51ff8113 (diff)
add barebox bootloader
Diffstat (limited to 'package')
-rw-r--r--package/barebox/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/package/barebox/Makefile b/package/barebox/Makefile
new file mode 100644
index 000000000..1dae9f785
--- /dev/null
+++ b/package/barebox/Makefile
@@ -0,0 +1,48 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= barebox
+PKG_VERSION:= 2017.02.0
+PKG_RELEASE:= 1
+PKG_HASH:= d65d864fe598d61ed9c6712e32d50742e6996aae02acaae5955c3b22166344cb
+PKG_DESCR:= portable bootloader
+PKG_SECTION:= base/boot
+PKG_BUILDDEP:= lzop-host
+PKG_URL:= http://www.barebox.org
+PKG_SITES:= http://www.barebox.org/download/
+
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,BAREBOX,barebox,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+TARGET_LDFLAGS:=
+CONFIG_STYLE:= manual
+BUILD_STYLE:= manual
+INSTALL_STYLE:= manual
+
+ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS),y)
+CONFIG:= qemu-malta_defconfig
+endif
+ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM_VEXPRESS_A9),y)
+CONFIG:= vexpress_ca9_defconfig
+endif
+
+do-configure:
+ (cd $(WRKBUILD) && $(MAKE) ARCH='$(ADK_TARGET_ARCH)' $(CONFIG))
+
+do-build:
+ (cd $(WRKBUILD) && env \
+ PATH='$(HOST_PATH)' \
+ ARCH='$(ADK_TARGET_ARCH)' \
+ CROSS_COMPILE='$(TARGET_CROSS)' \
+ GCC_HONOUR_COPTS=s \
+ $(MAKE))
+
+barebox-install:
+ $(INSTALL_DIR) $(IDIR_BAREBOX)/usr/bin
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk