* [Buildroot] [PATCH] tar: add Config.in.host
@ 2019-02-15 23:20 Markus Mayer
2019-02-16 13:32 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Markus Mayer @ 2019-02-15 23:20 UTC (permalink / raw)
To: buildroot
Add a config option to build tar for the host, so the user can choose
to build it, even if Buildroot wouldn't do so ordinarily.
Signed-off-by: Markus Mayer <mmayer@broadcom.com>
---
Since Buildroot can only work with three tar version (1.27-1.29), the
likelihood that system tar is too old or too new is quite high -- and
increasing. Ubuntu 16.04 and 18.04 ship with an acceptabe version of
tar. As of Ubuntu 18.10, system tar is already too recent.
Our main build machines are Ubuntu 16.04, but we need to support other
platforms. We need build machines of different flavours to be able to
build buildroot without requiring an Internet connection, using only
pre-downloaded package tar-balls (downloaded during the master build).
We can't rely that the tar sources have been downloaded automatically
based on what was detected on the master build machine, because it may
not require host-tar while a different build machine might.
A manual config option will give us the choice to build and bundle
host-tar regardless of what Buildroot finds on the master.
package/Config.in.host | 1 +
package/tar/Config.in.host | 8 ++++++++
2 files changed, 9 insertions(+)
create mode 100644 package/tar/Config.in.host
diff --git a/package/Config.in.host b/package/Config.in.host
index b4c501a33b32..6fa37c33732b 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -60,6 +60,7 @@ menu "Host utilities"
source "package/squashfs/Config.in.host"
source "package/sunxi-tools/Config.in.host"
source "package/swig/Config.in.host"
+ source "package/tar/Config.in.host"
source "package/tegrarcm/Config.in.host"
source "package/ti-cgt-pru/Config.in.host"
source "package/uboot-tools/Config.in.host"
diff --git a/package/tar/Config.in.host b/package/tar/Config.in.host
new file mode 100644
index 000000000000..ef3bdf30de89
--- /dev/null
+++ b/package/tar/Config.in.host
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_HOST_TAR
+ bool "host tar"
+ help
+ A program that saves many files together into a single tape
+ or disk archive, and can restore individual files from the
+ archive.
+
+ http://www.gnu.org/software/tar/
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] tar: add Config.in.host
2019-02-15 23:20 [Buildroot] [PATCH] tar: add Config.in.host Markus Mayer
@ 2019-02-16 13:32 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-02-16 13:32 UTC (permalink / raw)
To: buildroot
Hello Markus,
On Fri, 15 Feb 2019 15:20:06 -0800
Markus Mayer <mmayer@broadcom.com> wrote:
> Add a config option to build tar for the host, so the user can choose
> to build it, even if Buildroot wouldn't do so ordinarily.
>
> Signed-off-by: Markus Mayer <mmayer@broadcom.com>
> ---
>
> Since Buildroot can only work with three tar version (1.27-1.29), the
> likelihood that system tar is too old or too new is quite high -- and
> increasing. Ubuntu 16.04 and 18.04 ship with an acceptabe version of
> tar. As of Ubuntu 18.10, system tar is already too recent.
>
> Our main build machines are Ubuntu 16.04, but we need to support other
> platforms. We need build machines of different flavours to be able to
> build buildroot without requiring an Internet connection, using only
> pre-downloaded package tar-balls (downloaded during the master build).
>
> We can't rely that the tar sources have been downloaded automatically
> based on what was detected on the master build machine, because it may
> not require host-tar while a different build machine might.
>
> A manual config option will give us the choice to build and bundle
> host-tar regardless of what Buildroot finds on the master.
This use case is already solved by the option BR2_FORCE_HOST_BUILD,
introduced recently in commit 3f1b965bc36c64f83c962e373f7b5fe1245e3355,
with the exception that BR2_FORCE_HOST_BUILD solves the issue for all
host packages, not just for host-tar.
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-16 13:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-15 23:20 [Buildroot] [PATCH] tar: add Config.in.host Markus Mayer
2019-02-16 13:32 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox