diff options
Diffstat (limited to 'configs/platform-v7a/rules/barebox-am335x.make')
-rw-r--r-- | configs/platform-v7a/rules/barebox-am335x.make | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/configs/platform-v7a/rules/barebox-am335x.make b/configs/platform-v7a/rules/barebox-am335x.make new file mode 100644 index 0000000..da24d17 --- /dev/null +++ b/configs/platform-v7a/rules/barebox-am335x.make @@ -0,0 +1,93 @@ +# -*-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_AM335X) += barebox-am335x + +# +# Paths and names +# +BAREBOX_AM335X_VERSION := 2017.06.0 +BAREBOX_AM335X_MD5 := 71322133e8fdcc9eb23a171cd270d841 +BAREBOX_AM335X := barebox-$(BAREBOX_AM335X_VERSION) +BAREBOX_AM335X_SUFFIX := tar.bz2 +BAREBOX_AM335X_DIR := $(BUILDDIR)/barebox-am335x-$(BAREBOX_AM335X_VERSION) +BAREBOX_AM335X_CONFIG := $(PTXDIST_PLATFORMCONFIGDIR)/barebox-am335x.config.$(BAREBOX_AM335X_VERSION) +BAREBOX_AM335X_LICENSE := GPL-2.0 +BAREBOX_AM335X_URL := $(call barebox-url, BAREBOX_AM335X) +BAREBOX_AM335X_SOURCE := $(SRCDIR)/$(BAREBOX_AM335X).$(BAREBOX_AM335X_SUFFIX) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +BAREBOX_AM335X_BLACKLIST := \ + TARGET_HARDEN_RELRO \ + TARGET_HARDEN_BINDNOW \ + TARGET_HARDEN_PIE \ + TARGET_DEBUG + +BAREBOX_AM335X_CONF_ENV := KCONFIG_NOTIMESTAMP=1 +BAREBOX_AM335X_CONF_OPT := $(call barebox-opts, BAREBOX_AM335X) + +BAREBOX_AM335X_MAKE_ENV := $(BAREBOX_AM335X_CONF_ENV) +BAREBOX_AM335X_MAKE_OPT := $(BAREBOX_AM335X_CONF_OPT) + +BAREBOX_AM335X_IMAGES := images/barebox-am33xx-afi-gf.img \ + images/barebox-am33xx-beaglebone.img +BAREBOX_AM335X_IMAGES := $(addprefix $(BAREBOX_AM335X_DIR)/,$(BAREBOX_AM335X_IMAGES)) + +ifdef PTXCONF_BAREBOX_AM335X +$(BAREBOX_AM335X_CONFIG): + @echo + @echo "****************************************************************************" + @echo " Please generate a bareboxconfig with 'ptxdist menuconfig barebox-am335x'" + @echo "****************************************************************************" + @echo + @echo + @exit 1 +endif + +$(STATEDIR)/barebox-am335x.prepare: $(BAREBOX_AM335X_CONFIG) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +BAREBOX_AM335X_INSTALL_OPT := \ + $(call barebox-opts, BAREBOX_AM335X) + +$(STATEDIR)/barebox-am335x.install: + @$(call targetinfo) + @$(foreach image, $(BAREBOX_AM335X_IMAGES), \ + install -m 644 \ + $(image) $(IMAGEDIR)/$(notdir $(image));) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +$(STATEDIR)/barebox-am335x.clean: + @$(call targetinfo) + @$(call clean_pkg, BAREBOX_AM335X) + @$(foreach image, $(BAREBOX_AM335X_IMAGES), \ + rm -fv $(IMAGEDIR)/$(notdir $(image))-am335x;) + +# ---------------------------------------------------------------------------- +# oldconfig / menuconfig +# ---------------------------------------------------------------------------- + +barebox-am335x_oldconfig barebox-am335x_menuconfig barebox-am335x_nconfig: $(STATEDIR)/barebox-am335x.extract + @$(call world/kconfig, BAREBOX_AM335X, $(subst barebox-am335x_,,$@)) + +# vim: syntax=make |