From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 17 Apr 2023 15:12:02 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1poOeH-006KPz-VV for lore@lore.pengutronix.de; Mon, 17 Apr 2023 15:12:02 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1poOeG-0003w9-Qj; Mon, 17 Apr 2023 15:12:00 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1poOe0-0003qr-Gh; Mon, 17 Apr 2023 15:11:44 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1poOdz-00BtBB-SR; Mon, 17 Apr 2023 15:11:43 +0200 Received: from afa by dude05.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1poOdy-003oPZ-Hi; Mon, 17 Apr 2023 15:11:42 +0200 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Mon, 17 Apr 2023 15:11:37 +0200 Message-Id: <20230417131141.908678-2-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230417131141.908678-1-a.fatoum@pengutronix.de> References: <20230417131141.908678-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 1/5] at91bootstrap2: make targetinstall v4.x compatible X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ahmad Fatoum Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false The binaries directory, where artifacts were previously written to is now beneath build/ by default[1]: BUILDDIR ?= ./build BINDIR:=$(BUILDDIR)/binaries Supply BUILDDIR=. after the make command to return to the old directory scheme. This should have no effect on AT91Bootstrap v3.x and older as BUILDDIR was first added in v4.0.0[1]. This has already been submitted for PTXdist inclusion[2]. [1]: https://github.com/linux4sam/at91bootstrap/commit/814f3bdab515287fbb0d972d89d228748613ae91 [2]: https://lore.ptxdist.org/ptxdist/20230417115146.745019-1-a.fatoum@pengutronix.de/T/#u Signed-off-by: Ahmad Fatoum --- rules/at91bootstrap2.make | 90 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 rules/at91bootstrap2.make diff --git a/rules/at91bootstrap2.make b/rules/at91bootstrap2.make new file mode 100644 index 000000000000..c36e30305a92 --- /dev/null +++ b/rules/at91bootstrap2.make @@ -0,0 +1,90 @@ +# -*-makefile-*- +# +# Copyright (C) 2011 by Michael Olbrich +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_AT91BOOTSTRAP2) += at91bootstrap2 + +# +# Paths and names +# +AT91BOOTSTRAP2_VERSION := $(call ptx/config-version, PTXCONF_AT91BOOTSTRAP2) +AT91BOOTSTRAP2_MD5 := $(call ptx/config-md5, PTXCONF_AT91BOOTSTRAP2) +AT91BOOTSTRAP2 := at91bootstrap-$(AT91BOOTSTRAP2_VERSION) +AT91BOOTSTRAP2_SUFFIX := tar.gz +AT91BOOTSTRAP2_URL := https://github.com/linux4sam/at91bootstrap/archive/v$(AT91BOOTSTRAP2_VERSION).$(AT91BOOTSTRAP2_SUFFIX) +AT91BOOTSTRAP2_SOURCE := $(SRCDIR)/$(AT91BOOTSTRAP2).$(AT91BOOTSTRAP2_SUFFIX) +AT91BOOTSTRAP2_DIR := $(BUILDDIR)/$(AT91BOOTSTRAP2) +AT91BOOTSTRAP2_CONFIG := $(call ptx/in-platformconfigdir, \ + $(call remove_quotes, $(PTXCONF_AT91BOOTSTRAP2_CONFIG))) +AT91BOOTSTRAP2_LICENSE := unknown + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +AT91BOOTSTRAP2_WRAPPER_BLACKLIST := \ + $(PTXDIST_LOWLEVEL_WRAPPER_BLACKLIST) + +AT91BOOTSTRAP2_MAKE_ENV := \ + CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) \ + HOSTCC=$(HOSTCC) +AT91BOOTSTRAP2_MAKE_OPT := V=$(PTXDIST_VERBOSE) BUILDDIR=. + +ifdef PTXCONF_AT91BOOTSTRAP2 +$(AT91BOOTSTRAP2_CONFIG): + @echo + @echo "***********************************************************************************" + @echo "* Please generate a at91bootstrap config with 'ptxdist menuconfig at91bootstrap2' *" + @echo "***********************************************************************************" + @echo + @echo + @exit 1 +endif + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/at91bootstrap2.install: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/at91bootstrap2.targetinstall: + @$(call targetinfo) + @if [ -e $(AT91BOOTSTRAP2_DIR)/binaries/at91bootstrap.bin ]; then \ + install -vD -m644 $(AT91BOOTSTRAP2_DIR)/binaries/at91bootstrap.bin \ + $(IMAGEDIR)/at91bootstrap.bin; \ + else \ + install -vD -m644 $(AT91BOOTSTRAP2_DIR)/binaries/*boot-$(AT91BOOTSTRAP2_VERSION).bin \ + $(IMAGEDIR)/at91bootstrap.bin; \ + fi + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +$(STATEDIR)/at91bootstrap2.clean: + @$(call targetinfo) + @$(call clean_pkg, AT91BOOTSTRAP2) + @rm -rf $(IMAGEDIR)/at91bootstrap.bin + +# ---------------------------------------------------------------------------- +# oldconfig / menuconfig +# ---------------------------------------------------------------------------- + +at91bootstrap2_oldconfig at91bootstrap2_menuconfig: $(STATEDIR)/at91bootstrap2.extract + @$(call world/kconfig, AT91BOOTSTRAP2, $(subst at91bootstrap2_,,$@)) + +# vim: syntax=make -- 2.39.2