| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
gold only supports '-z option' not '-z,option'
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
| |
Reported-by: Jon Ringle <jringle@gridpoint.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
With the latest bash security fixes, exported shell functions get lost
when a script is called indirectly, e.g. bash -> dash -> bash.
This can happen when pkg-config-wrapper is called from a configure script.
In this case check_pipe_status is no longer defined.
Avoid the problem by replacing check_pipe_status with its content.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
| |
This is useful if you install a package to /opt and libs are in /opt/lib:
$(call install_lib, foo, 0, 0, 0644, libfoo, /opt)
Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Without linemarkers the error messages are somehwat useless.
To demonstrate I picked a random .dts file file from the arm tree in
linux sources:
DTC ptx-testprj_arm/platform/images/vf610-twr.dtb
Error: /tmp/testprj/platform/state/vf610-twr.dts.tmp:366.1-5 syntax error
FATAL ERROR: Unable to parse input tree
If linemarkers are inserted the error message clearly states in which file
which line caused the error:
DTC ptx-testprj_arm/platform/images/vf610-twr.dtb
Error: /tmp/testprj/platform/build-target/linux/arch/arm/boot/dts/vf610-twr.dts:13.1-5 syntax error
FATAL ERROR: Unable to parse input tree
The support for #line markers was added in the same release as -i was
added. So add -P only if -i is not supported.
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
This is necessary to e.g. handle files with dos line breaks.
Otherwise this_pkg is '<pkg>\r' which causes all kinds of problems.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
grep -q exits as soon as the first expression is found. This leads to a
SIGPIPE to the objcopy process. SIGPIPE results in an exit code of 141.
So ptxd_install_file_extract_debug must handle the 141 return value as
,,didn't work'' because the grep found the expected error string.
Signed-off-by: Tim Niemeyer <tim.niemeyer@corscience.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>
|
|
|
|
|
|
|
| |
the prefix of the dependency must be checked to determine if the image
depends on install or targetinstall.
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>
|
|
|
|
|
|
|
|
| |
The dtc from older kernel versions does not support the '-i' option. In
this case the temporary dts file must remain in the kernel source tree.
Otherwise includes are not found.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New package versions have always been problematic. If the old version
is built and the tarball for the new version is older than the get
stage then ptxdist didn't build the new version.
To improve the situation we now do the following:
- create a dummy state file with the tarball name as part of the
filename.
- let the get stage depend on this.
For a new version the file does not exist and the package is rebuilt.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
In order to be able to keep all our cross compile M4 macros at a single
location and share it between all autotools based templates we must forward
the location of the M4 macros to the wizard script. This change adds a second
parameter when calling the template's wizard. Older wizards will ignore it so
it should not confuse existing templates.
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
|
|
|
|
|
|
|
| |
This patch adds error handling for the ptxd_make_dts_dtb function.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
'340ed9a9cac3d5e387bb660e27624dbd6105c0ba ptxd_lib_kgen: optimize' changed
the path where the files are generated and broke this.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
Otherwise, this depends on the local settings.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
The generated Kconfig files for the sections don't change during on ptxdist
run. There is no need to generate those more than once.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
The regex is basically <prefix>/lib so '${prefix}/lib' is the correct
value. Usually that is not a problem because prefix == exec_prefix, but
this fails for .pc files that do not define exec_prefix at all.
Without this checking for libpci fails with:
Variable 'exec_prefix' not defined in '.../sysroot-target/usr/lib/pkgconfig/libpci.pc'
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
always set ICECC_CC/ICECC_CXX. Otherwise icecc may use the wrong
compiler, e.g. /usr/bin/gcc instead of $PTXCONF_SETUP_HOST_CC.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
The latest changes broke the dependencies and variable resolution again.
Fixing this in shell was a lot easier and cleaner.
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>
|
|
|
|
|
|
|
| |
This partially reverts commit 9606474215748ba68b32fd8b89360d0e165b3651.
'$(< file)' only work for one file.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
This defines a BSP version with the same mechanism that is used for the
ptxdist version.
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>
|
|
|
|
|
|
|
|
| |
When building target packages, the host compiler may be used to build
something. Don't add the packages specific flags here. They may be
architecture specific.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
The toolchain wrapper adds these package specific flags when appropriate.
They are added right before PTXCONF_TARGET_EXTRA_*
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>
|
|
|
|
|
|
|
| |
It confuses most people and is rarely used. It's just templates, so if
someone needs something like that, it can be added to the generated rules.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
| |
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
${pkg_deprecated_extract_dir} set
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
Otherwise we fail after copying the local file.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
Keep the old behaviour for old ptxdist versions that do not printing
multiple variables.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
This way ptxdist won't create platform/logfile before the correct
platformconfig is selected.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|