diff options
author | Roland Hieber <rhi@pengutronix.de> | 2019-06-05 20:52:07 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2019-06-05 21:07:22 +0200 |
commit | f4e6877164ebe9f2cc95c0e14018a6395100c397 (patch) | |
tree | 7e1616e1d660116a69f7ace23bbe8e7a5fc64537 /configs/platform-v7a/rules | |
parent | 47b12b0b711f7a19e1ca399d1fa26a5114e19e4e (diff) | |
download | DistroKit-f4e6877164ebe9f2cc95c0e14018a6395100c397.tar.gz DistroKit-f4e6877164ebe9f2cc95c0e14018a6395100c397.tar.xz |
v7a: barebox-common: add a common reference config for all barebox variants
This package serves multiple purposes:
* Make the barebox version and MD5 for all used barebox variants
configurable with just one menu entry.
* Have a common barebox configuration with a baseline feature set, which
can be used by all barebox-* variants as a reference config with the
config diff functionality introduced in PTXdist 2019.01.0.
The common config is currently based on ARCH_BCM283X, which seems to
generate the smallest config diff for all the existing device-specific
barebox configs (which will be adapted in the next commits).
The new barebox-common package only exists for the ability to call
"ptxdist menuconfig" on it in order to change the common config. It
isn't meant to build or install anything, so the compile, install and
targetinstall stages can be no-ops.
Also make sure that the menu entry for the common configuration is
listed before all other barebox variants by naming the kconfig file
appriopriately. Since the barebox-common config uses LZO image
compression, depend on host-lzop too.
Then configure it to use the version which is currently used for all
other variants in the v7a platform.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules')
-rw-r--r-- | configs/platform-v7a/rules/barebox-common.make | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/configs/platform-v7a/rules/barebox-common.make b/configs/platform-v7a/rules/barebox-common.make new file mode 100644 index 0000000..c03c27a --- /dev/null +++ b/configs/platform-v7a/rules/barebox-common.make @@ -0,0 +1,77 @@ +# -*-makefile-*- +# +# Copyright (C) 2019 Roland Hieber <rhi@pengutronix.de> +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +EXTRA_PACKAGES-$(PTXCONF_BAREBOX_COMMON) += barebox-common + +# +# Paths and names +# +BAREBOX_COMMON_VERSION := $(call remove_quotes,$(PTXCONF_BAREBOX_COMMON_VERSION)) +BAREBOX_COMMON_MD5 := $(call remove_quotes,$(PTXCONF_BAREBOX_COMMON_MD5)) +BAREBOX_COMMON := barebox-common-$(BAREBOX_COMMON_VERSION) +BAREBOX_COMMON_SUFFIX := tar.bz2 +BAREBOX_COMMON_URL := $(call barebox-url, BAREBOX_COMMON) +BAREBOX_COMMON_SOURCE := $(SRCDIR)/barebox-$(BAREBOX_COMMON_VERSION).$(BAREBOX_COMMON_SUFFIX) +BAREBOX_COMMON_DIR := $(BUILDDIR)/$(BAREBOX_COMMON) +BAREBOX_COMMON_LICENSE := GPL-2.0-only +BAREBOX_COMMON_DEVPKG := NO + +BAREBOX_COMMON_CONFIG := $(call ptx/in-platformconfigdir, barebox.config) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# use host pkg-config for host tools +BAREBOX_COMMON_PATH := PATH=$(HOST_PATH) + +BAREBOX_COMMON_CONF_OPT := $(call barebox-opts) +BAREBOX_COMMON_MAKE_OPT := $(BAREBOX_COMMON_CONF_OPT) + +BAREBOX_COMMON_TAGS_OPT := TAGS tags cscope + +$(STATEDIR)/barebox-common.prepare: + @$(call targetinfo) + @$(call world/prepare, BAREBOX_COMMON) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/barebox-common.compile: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/barebox-common.install: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/barebox-common.targetinstall: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# oldconfig / menuconfig +# ---------------------------------------------------------------------------- + +barebox-common_oldconfig barebox-common_menuconfig barebox-common_nconfig: $(STATEDIR)/barebox-common.extract + @$(call world/kconfig, BAREBOX_COMMON, $(subst barebox-common_,,$@)) + +# vim: syntax=make |