summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* wrapper: fix linking with goldMichael Olbrich2014-12-021-3/+3
| | | | | | gold only supports '-z option' not '-z,option' Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_get_git: fix permision problemMichael Olbrich2014-11-281-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_xpkg_pkg: handle old touch without support for --no-dereferenceMichael Olbrich2014-11-132-4/+13
| | | | | Reported-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pkg-config-wrapper: don't use check_pipe_statusMichael Olbrich2014-10-121-1/+5
| | | | | | | | | | | 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>
* install_dir: Allow one to specify an alternate root dirJon Ringle2014-10-011-2/+11
| | | | | | | | 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>
* ptxd_make_dts_dtb: use local variablesMichael Olbrich2014-09-161-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* dtc: Do not inhibit linemarker generation if supportedAlexander Stein2014-09-161-1/+5
| | | | | | | | | | | | | | | | | | | | | | 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>
* ptxd_lib_dgen: strip white spaces from this_pkgMichael Olbrich2014-09-051-1/+1
| | | | | | | 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>
* ptxd_make_xpkg_pkg: handle SIGPIPE correctlyptxdist-2014.09.0Tim Niemeyer2014-09-041-1/+1
| | | | | | | | | | 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>
* patchin: set core.abbrev=12 when creating patches with gitMichael Olbrich2014-08-211-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_clean: make sure ${pkg_xpkg_map} exists before using itMichael Olbrich2014-08-191-4/+6
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_image_genimage: increase log level in verbose modeMichael Olbrich2014-08-121-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: fix dependencies for image packagesMichael Olbrich2014-08-111-1/+2
| | | | | | | 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>
* ptxd_install_replace: escape ',' in pattern and valueMichael Olbrich2014-08-061-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_dgen_rulesfiles: handle rulesdirs that are symbolic linksptxdist-2014.08.0Michael Olbrich2014-07-311-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* setlocalversion: not all git version support the '-c' optionMichael Olbrich2014-07-311-2/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_dts_dtb: support older kernelMichael Olbrich2014-07-221-5/+8
| | | | | | | | 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>
* ptxd_lib_dgen: be more clever about tarball dependenciesMichael Olbrich2014-07-221-1/+3
| | | | | | | | | | | | | 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>
* generate predictable timestampsMichael Olbrich2014-07-182-2/+8
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* newpackages: provide the M4 macro directory to the wizard scriptJuergen Borleis2014-07-111-2/+3
| | | | | | | | | | 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>
* ptxd_make_dts_dtc: handle error if dtc failedAlexander Aring2014-07-091-7/+9
| | | | | | | 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>
* ptxd_make_dts_dtb: one more include dirMichael Olbrich2014-07-041-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_colgen: fix collectionsMichael Olbrich2014-07-041-1/+1
| | | | | | | '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>
* setlocalversion: use a fixed abbrev length for the version stringptxdist-2014.07.0Michael Olbrich2014-07-031-2/+2
| | | | | | Otherwise, this depends on the local settings. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_kgen: optimizeMichael Olbrich2014-06-302-4/+7
| | | | | | | 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>
* ptxd_make_world_install_mangle_pc: use '${prefix}/lib' for libdirMichael Olbrich2014-06-271-1/+1
| | | | | | | | | | | 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>
* wapper: improve icecc handlingMichael Olbrich2014-06-195-5/+24
| | | | | | | 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>
* ptxdist: add support for iceccMichael Olbrich2014-06-185-2/+8
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* dtc: move dtb creation to shellMichael Olbrich2014-06-181-0/+69
| | | | | | | 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>
* add bootloader spec entry templateMichael Olbrich2014-06-171-0/+23
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_update_md5: be stricter when updating the md5Michael Olbrich2014-06-161-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_xpkg_common: Revert "useless use of cat"Michael Olbrich2014-06-131-1/+1
| | | | | | | This partially reverts commit 9606474215748ba68b32fd8b89360d0e165b3651. '$(< file)' only work for one file. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* define PTXDIST_BSP_AUTOVERSIONMichael Olbrich2014-06-121-0/+17
| | | | | | | 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>
* libptxdist: remove some useless echoMichael Olbrich2014-06-101-4/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* useless use of catMichael Olbrich2014-06-104-8/+8
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* wrapper: don't use target flags for the host compilerMichael Olbrich2014-06-091-3/+9
| | | | | | | | 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>
* wrapper: add '-mfpu=neon' for PTXCONF_ARCH_ARM_NEONMichael Olbrich2014-06-081-0/+6
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* introduce <PKG>_{CPPFLAGS,CFLAGS,CXXFLAGS,LDFLAGS}Michael Olbrich2014-06-081-0/+7
| | | | | | | 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>
* perl: name the wrapper 'cross-perl' to avoid name clashes with system perlMichael Olbrich2014-04-151-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_prepare: support <PKG>_CONF_TOOL := perlMichael Olbrich2014-04-112-2/+23
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* migrate: add patters for PTXCONF_LIBUSB_DISABLE_LOG -> PTXCONF_LIBUSB_LOGMichael Olbrich2014-04-041-0/+9
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* templates: allow overwriting template files in the BSPMichael Olbrich2014-03-073-6/+17
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* templates: remove fancy version magicMichael Olbrich2014-03-071-1/+1
| | | | | | | 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>
* local-src: allow to remove the linkMichael Olbrich2014-03-061-4/+9
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: Add local-src commandSascha Hauer2014-03-061-0/+40
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_extract: don't break packages with ↵Michael Olbrich2014-03-031-2/+2
| | | | | | ${pkg_deprecated_extract_dir} set Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_get: check for file:// URL and <PKG>_SOURCE hereMichael Olbrich2014-02-283-5/+10
| | | | | | Otherwise we fail after copying the local file. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_extract: add sanity checkMichael Olbrich2014-02-281-0/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: cache package list when possibleMichael Olbrich2014-02-251-1/+10
| | | | | | | Keep the old behaviour for old ptxdist versions that do not printing multiple variables. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: don't create the logfile until the platformdir is verifiedMichael Olbrich2014-02-251-3/+0
| | | | | | | This way ptxdist won't create platform/logfile before the correct platformconfig is selected. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>