From f4e6877164ebe9f2cc95c0e14018a6395100c397 Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Wed, 5 Jun 2019 20:52:07 +0200 Subject: 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 --- configs/platform-v7a/rules/barebox-common.make | 77 ++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 configs/platform-v7a/rules/barebox-common.make (limited to 'configs/platform-v7a/rules') 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 +# +# 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 -- cgit v1.2.3