| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
| |
Use ptxd_make_world_patchin_init to make sure that pkg_patch_dir is
actually defined. Also add the series filename if patches are used and it
has a non default filename.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
The ptxd_make_world_patchin_init here is correct: It defines
pkg_patch_dir.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
This was broken in the final cleanup of the last change.
Also, remove accidentally commited debug 'tee a'.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
Only split at the first '='. This way, 'b' contains the rest of the line,
even if it contains another '='.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
Otherwise, 'config' may be called with invalid arguments. This catches the
error earlier and provides a hint where the error occured.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
Without this symbols with e.g. lowercase letters are not parsed correctly.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
| |
With these, arbitrary commands can be executed in the build stages. They
habe the advantage that the environment is identical to the default build
stages.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
This makes it reusable elsewhere.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
Some packages try to be clever and set it but it interferes with our own
filter magic.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
The shell is used to split the strings into multiple array elements.
However, this means that other expansions are performed as well. E.g. path
expansion (with workspace as current directory). So files that match a
pattern break the build.
Disable pathname and brace expansion temporarily to fix this. Use an array
afterwards to ensure that the patterns can be quoted correctly afterwards.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
'HOST_SYSTEM_PYTHON' is selected
This makes it possible to use '<PKG>_CONF_TOOL := python' for packages that
are not helper for target python packages but arbitrary build tools.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes warnings like:
conf.c:79:3: warning: format not a string literal and no format arguments [-Wformat-security]
printf(_("aborted!\n\n"));
^
Note: not all compilers show this warning.
Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
Update the config for any *config make targets (unchanged).
For anything else, update only in interactive sessions (= when a tty is
available). Otherwise fail if the config changes.
This emulates the old 'silentoldconfig' mode that no longer exists in the
kernel.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
Set MAKE=false to ensure any sub-make fails immediately if the dry-run
setup does not work correctly.
Also, don't ignore errors during 'make --dry-run'. Note: only errors for
'make' are relevant. 'grep' fails if no targets are found. That can happen
if nothing needs to be done.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
The progress output is only printed in quiet mode so skip the expensive
setup otherwise.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
| |
Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
Manual includes are relative to the temporary kconfig file tree. The
current working directory for ptxd_lib_dgen.awk is the workspace, so these
relative files are not found.
Add the correct absolute prefix for these files to fix this.
Also, make 'tmp' und dump_file() a local variable to ensure that it does
not contain old contents.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
If the diff is missing, then it must be regenerated from base and current
config. If the current config is up to date then no config files are
written and no diff is generated.
Force a config update if the diff is missing to ensure a new one is
generated.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Not all packages support 'silentoldconfig' and at least the kernel no
longer fails when user input is needed.
So always run oldconfig and verify that the config is unchanged instead.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
This ensures that nothing waits for user input. Any output that requests
the input will not be visible anyways.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
| |
Signed-off-by: Valentin Gorelov <gorelov.v@bpa.ru>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
It's not quite correct, but it shouldn't hurt and with -B the path is added
to 'libraries:' in 'gcc -print-search-dirs'. Libtool uses this for manual
seaching. This avoid explicit paths to .la files found in the system when
building host packages.
Also assume -print-search-dirs means compiling/linking to ensure the
options are used.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
| |
"utils" is never used anywhere, neither in configure.ac, nor in our
kconfig menu. Rename it to prevent confusion.
Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
Also, split the locale data into a separate package. This way, libxkbcommon
can use it independently for key composing.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
It is mostly the same as ptxd_get_path() but it filters out any results
that are symlinks to /dev/null.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
for collections, ptxd_kconfig is called for ptxconfig and platformconfig
for each layer. In this case confdir is already set and modified for the
correct layer.
Without this some files are generated for the wrong layer and the
collections effectively use the ptxconfig from the lowest layer.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
mode=run is used to generate the dependencies. Usually, this only happens
explicitly on the current top layer. A non-existent config already fails
earlier.
For collections, the dependencies are generated for each layer to generate
the kconfig files. With this all layers below the first config file are
ignored.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
Without this the stamp file is only generated when a diff is applied. As a
result, reading the stamp file produces an error message.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
It does not handle equal timestamps or sub-second changes correctly.
Use stat to the full timestamp and just check if it changed in any way.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
| |
If the timestamps are equal then the file was not modified by kconfig.
Don't save the config file in this case. There is nothing new and the
options may be sorted incorrectly after applying the diff.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
| |
- don't create debug files if debugging is disabled
- print created debug file path
- install gdb debug helpers into root/ and debug packages
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
A lot of packages use such a build timestamp. Define it once and use it
everywhere.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
These variables are used by kernel and barebox packages. Define those to
get more reproducible results.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
If a temporary symlink in local_src/ is used to provide the source code for
a package, then reset SOURCE_DATE_EPOCH to the current date/time.
Such symlinks are used during development only and built-in timestamps can
be used to determine that the correct version of a binary is used.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
This check only makes sense for 'alternative' and 'config'. For all other
commands $src is a global absolute path, not a target path.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
This ensures that the config files does not contain a timestamp.
Even if the packages using world/kconfig etc. do not set this variable.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Empty parameters may be passed to ptxd_install_resolve_usr_grp i.e. when
calling install_archive with UID/GID set to '-'. According to
documentation this should preserve the owner/group stored in the
archive. Without this patch, empty strings are mapped to the first entry
in /etc/{passwd,group} (usually 0) instead, thus breaking the documented
behaviour.
Signed-off-by: Andrej Gantvorg <andrej.gantvorg@wago.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
If a config (and diff) is removed because the diff is empty, then print a
appropriate message.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|