summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/rules
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-06-16 08:54:11 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2017-06-30 18:49:27 +0200
commitdb829962b96d8288e560496af589a509e3cb5f4a (patch)
tree7b0c3fa099587896ade4eebdcb7a6ccfe67e535d /configs/platform-v7a/rules
parent9d32c94049f8582ef25447bf1bf775fd0cf3ce4f (diff)
downloadDistroKit-db829962b96d8288e560496af589a509e3cb5f4a.tar.gz
DistroKit-db829962b96d8288e560496af589a509e3cb5f4a.tar.xz
platform-v7a: barebox: re-add am335x barebox-mlo
This re-adds barebox-mlo for all supported am335x hardware. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> [improve commit message] Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules')
-rw-r--r--configs/platform-v7a/rules/barebox-am335x-mlo.make96
1 files changed, 96 insertions, 0 deletions
diff --git a/configs/platform-v7a/rules/barebox-am335x-mlo.make b/configs/platform-v7a/rules/barebox-am335x-mlo.make
new file mode 100644
index 0000000..1e5c010
--- /dev/null
+++ b/configs/platform-v7a/rules/barebox-am335x-mlo.make
@@ -0,0 +1,96 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Sascha Hauer <s.hauer@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_BAREBOX_AM335X_MLO) += barebox-am335x-mlo
+
+#
+# Paths and names
+#
+BAREBOX_AM335X_MLO_VERSION := 2017.06.0
+BAREBOX_AM335X_MLO_MD5 := 71322133e8fdcc9eb23a171cd270d841
+BAREBOX_AM335X_MLO := barebox-$(BAREBOX_AM335X_MLO_VERSION)
+BAREBOX_AM335X_MLO_SUFFIX := tar.bz2
+BAREBOX_AM335X_MLO_DIR := $(BUILDDIR)/barebox-am335x-mlo-$(BAREBOX_AM335X_MLO_VERSION)
+BAREBOX_AM335X_MLO_CONFIG := $(PTXDIST_PLATFORMCONFIGDIR)/barebox-am335x-mlo.config.$(BAREBOX_AM335X_MLO_VERSION)
+BAREBOX_AM335X_MLO_LICENSE := GPL-2.0
+BAREBOX_AM335X_MLO_URL := $(call barebox-url, BAREBOX_AM335X_MLO)
+BAREBOX_AM335X_MLO_SOURCE := $(SRCDIR)/$(BAREBOX_AM335X_MLO).$(BAREBOX_AM335X_MLO_SUFFIX)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+BAREBOX_AM335X_MLO_BLACKLIST := \
+ TARGET_HARDEN_RELRO \
+ TARGET_HARDEN_BINDNOW \
+ TARGET_HARDEN_PIE \
+ TARGET_DEBUG
+
+BAREBOX_AM335X_MLO_CONF_ENV := KCONFIG_NOTIMESTAMP=1
+BAREBOX_AM335X_MLO_CONF_OPT := $(call barebox-opts, BAREBOX_AM335X_MLO)
+
+BAREBOX_AM335X_MLO_MAKE_ENV := $(BAREBOX_AM335X_MLO_CONF_ENV)
+BAREBOX_AM335X_MLO_MAKE_OPT := $(BAREBOX_AM335X_MLO_CONF_OPT)
+
+BAREBOX_AM335X_MLO_IMAGES := images/barebox-am33xx-afi-gf-mlo.img \
+ images/barebox-am33xx-beaglebone-mlo.img
+BAREBOX_AM335X_MLO_IMAGES := $(addprefix $(BAREBOX_AM335X_MLO_DIR)/,$(BAREBOX_AM335X_MLO_IMAGES))
+
+ifdef PTXCONF_BAREBOX_AM335X_MLO
+$(BAREBOX_AM335X_MLO_CONFIG):
+ @echo
+ @echo "****************************************************************************"
+ @echo " Please generate a bareboxconfig with 'ptxdist menuconfig barebox-am335x-mlo'"
+ @echo "****************************************************************************"
+ @echo
+ @echo
+ @exit 1
+endif
+
+$(STATEDIR)/barebox-am335x-mlo.prepare: $(BAREBOX_AM335X_MLO_CONFIG)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+BAREBOX_AM335X_MLO_INSTALL_OPT := \
+ $(call barebox-opts, BAREBOX_AM335X_MLO)
+
+$(STATEDIR)/barebox-am335x-mlo.install:
+ @$(call targetinfo)
+# @mkdir -p $(BAREBOX_AM335X_MLO_PKGDIR)/usr/lib/$(BAREBOX_AM335X_MLO)
+# install -m 644 $(image)
+# $(BAREBOX_AM335X_MLO_PKGDIR)/usr/lib/$(BAREBOX_AM335X_MLO)/$(notdir $(image));
+ @$(foreach image, $(BAREBOX_AM335X_MLO_IMAGES), \
+ install -m 644 \
+ $(image) $(IMAGEDIR)/$(notdir $(image));)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/barebox-am335x-mlo.clean:
+ @$(call targetinfo)
+ @$(call clean_pkg, BAREBOX_AM335X_MLO)
+ @$(foreach image, $(BAREBOX_AM335X_MLO_IMAGES), \
+ rm -fv $(IMAGEDIR)/$(notdir $(image))-am335x-mlo;)
+
+# ----------------------------------------------------------------------------
+# oldconfig / menuconfig
+# ----------------------------------------------------------------------------
+
+barebox-am335x-mlo_oldconfig barebox-am335x-mlo_menuconfig barebox-am335x-mlo_nconfig: $(STATEDIR)/barebox-am335x-mlo.extract
+ @$(call world/kconfig, BAREBOX_AM335X_MLO, $(subst barebox-am335x-mlo_,,$@))
+
+# vim: syntax=make