diff options
author | Rouven Czerwinski <r.czerwinski@pengutronix.de> | 2017-06-16 08:55:19 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2017-07-02 20:05:44 +0200 |
commit | 421193e8981287d6edc70af6d2996a5296438f87 (patch) | |
tree | e47cb17e8175d3e01a4c541b5675d280d6137798 /configs/platform-v7a/rules/barebox-vexpress.make | |
parent | eaa85ed76c7708d42d4c65bc40e7462c2cd0600f (diff) | |
download | DistroKit-421193e8981287d6edc70af6d2996a5296438f87.tar.gz DistroKit-421193e8981287d6edc70af6d2996a5296438f87.tar.xz |
platform-v7a: vexpress: add barebox
Add support for barebox for the Versatile Express architecture.
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
[improve commit message]
[split from riotboard patches]
[oldconfig barebox config to 2017.06.0]
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules/barebox-vexpress.make')
-rw-r--r-- | configs/platform-v7a/rules/barebox-vexpress.make | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/configs/platform-v7a/rules/barebox-vexpress.make b/configs/platform-v7a/rules/barebox-vexpress.make new file mode 100644 index 0000000..54275db --- /dev/null +++ b/configs/platform-v7a/rules/barebox-vexpress.make @@ -0,0 +1,92 @@ +# -*-makefile-*- +# +# Copyright (C) 2017 by Robert Schwebel <r.schwebel@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_VEXPRESS) += barebox-vexpress + +# +# Paths and names +# +BAREBOX_VEXPRESS_VERSION := 2017.06.0 +BAREBOX_VEXPRESS_MD5 := 71322133e8fdcc9eb23a171cd270d841 +BAREBOX_VEXPRESS := barebox-$(BAREBOX_VEXPRESS_VERSION) +BAREBOX_VEXPRESS_SUFFIX := tar.bz2 +BAREBOX_VEXPRESS_DIR := $(BUILDDIR)/barebox-vexpress-$(BAREBOX_VEXPRESS_VERSION) +BAREBOX_VEXPRESS_CONFIG := $(PTXDIST_PLATFORMCONFIGDIR)/barebox-vexpress.config.$(BAREBOX_VEXPRESS_VERSION) +BAREBOX_VEXPRESS_LICENSE := GPL-2.0 +BAREBOX_VEXPRESS_URL := $(call barebox-url, BAREBOX_VEXPRESS) +BAREBOX_VEXPRESS_SOURCE := $(SRCDIR)/$(BAREBOX_VEXPRESS).$(BAREBOX_VEXPRESS_SUFFIX) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +BAREBOX_VEXPRESS_BLACKLIST := \ + TARGET_HARDEN_RELRO \ + TARGET_HARDEN_BINDNOW \ + TARGET_HARDEN_PIE \ + TARGET_DEBUG + +BAREBOX_VEXPRESS_CONF_ENV := KCONFIG_NOTIMESTAMP=1 +BAREBOX_VEXPRESS_CONF_OPT := $(call barebox-opts, BAREBOX_VEXPRESS) + +BAREBOX_VEXPRESS_MAKE_ENV := $(BAREBOX_VEXPRESS_CONF_ENV) +BAREBOX_VEXPRESS_MAKE_OPT := $(BAREBOX_VEXPRESS_CONF_OPT) + +BAREBOX_VEXPRESS_IMAGES := barebox.bin +BAREBOX_VEXPRESS_IMAGES := $(addprefix $(BAREBOX_VEXPRESS_DIR)/,$(BAREBOX_VEXPRESS_IMAGES)) + +ifdef PTXCONF_BAREBOX_VEXPRESS +$(BAREBOX_VEXPRESS_CONFIG): + @echo + @echo "****************************************************************************" + @echo " Please generate a bareboxconfig with 'ptxdist menuconfig barebox-vexpress'" + @echo "****************************************************************************" + @echo + @echo + @exit 1 +endif + +$(STATEDIR)/barebox-vexpress.prepare: $(BAREBOX_VEXPRESS_CONFIG) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +BAREBOX_VEXPRESS_INSTALL_OPT := \ + $(call barebox-opts, BAREBOX_VEXPRESS) + +$(STATEDIR)/barebox-vexpress.install: + @$(call targetinfo) + @$(foreach image, $(BAREBOX_VEXPRESS_IMAGES), \ + install -m 644 \ + $(image) $(IMAGEDIR)/$(notdir $(image))-vexpress;) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +$(STATEDIR)/barebox-vexpress.clean: + @$(call targetinfo) + @$(call clean_pkg, BAREBOX_VEXPRESS) + @$(foreach image, $(BAREBOX_VEXPRESS_IMAGES), \ + rm -fv $(IMAGEDIR)/$(notdir $(image))-vexpress;) + +# ---------------------------------------------------------------------------- +# oldconfig / menuconfig +# ---------------------------------------------------------------------------- + +barebox-vexpress_oldconfig barebox-vexpress_menuconfig barebox-vexpress_nconfig: $(STATEDIR)/barebox-vexpress.extract + @$(call world/kconfig, BAREBOX_VEXPRESS, $(subst barebox-vexpress_,,$@)) + +# vim: syntax=make |