From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH 1/5] at91bootstrap2: make targetinstall v4.x compatible
Date: Mon, 17 Apr 2023 15:11:37 +0200 [thread overview]
Message-ID: <20230417131141.908678-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20230417131141.908678-1-a.fatoum@pengutronix.de>
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 <a.fatoum@pengutronix.de>
---
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 <m.olbrich@pengutronix.de>
+#
+# 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
next prev parent reply other threads:[~2023-04-17 13:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-17 13:11 [DistroKit] [PATCH 0/5] v7a: add first support for Wifx L1 Ahmad Fatoum
2023-04-17 13:11 ` Ahmad Fatoum [this message]
2023-04-17 13:11 ` [DistroKit] [PATCH 2/5] v7a: at91bootstrap: configure v4.0.6-rc1 " Ahmad Fatoum
2023-04-17 13:11 ` [DistroKit] [PATCH 3/5] v7a: barebox: extend support to SAMA5D4-based " Ahmad Fatoum
2023-04-17 13:11 ` [DistroKit] [PATCH 4/5] v7a: kernel: " Ahmad Fatoum
2023-04-17 13:11 ` [DistroKit] [PATCH 5/5] v7a: add Wifx L1 SD-Card image Ahmad Fatoum
2023-04-17 13:59 ` [DistroKit] [PATCH 0/5] v7a: add first support for Wifx L1 Robert Schwebel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230417131141.908678-2-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=distrokit@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox