summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* ptxd_make_world_clean: ignore missing ipkgsMichael Olbrich2017-09-061-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* lighttpd: Rename memcache option to memcachedAlexander Dahl2017-09-041-0/+8
| | | | | | | | | | | | | | | | | | | | | The memcached ./configure option for lighttpd changed, see the changeset for upgrading lighttpd package from 1.4.39 to 1.4.45. For making the configure option consistent with the menu entry, the menu variable is renamed here. It seems lighttpd has switched from libmemcache to libmemcached for memcached support. Took this from a not applied patch from 2016, and added the necessary migration helper suggested by Michael Olbrich, plus the dependency changes in lighttpd.in. However libmemcache and libmemcached are outdated and build against the old libmemcached fails now, so mark it as broken. Suggested-by: Andreas Geisenhainer <Andreas.Geisenhainer@atsonline.de> Suggested-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Alexander Dahl <ada@thorsis.com> [mol: LIGHTTPD_MOD_TRIGGER_B4_DL is also broken + commends for that] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: handle symlinks correctly when comparing PTXDIST_TOPDIR and ↵Michael Olbrich2017-07-141-1/+1
| | | | | | | | | | | | PTXDIST_WORKSPACE PTXDIST_TOPDIR is set to based on the path to ptxdist with all symlinks resolved. PTXDIST_WORKSPACE is set to the current working directory. If this path contains symlinks then comparing the strings does not work as expected. Use '-ef' instead to check if both paths point to the same directory. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_image_extract_xpkg_files: use unique config file nameMichael Olbrich2017-07-131-1/+1
| | | | | | | This may be called multiple times in parallel when building with '-j'. Use a random config file name to avoid collisions. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pkg-config-wrapper: write error message to stdoutMichael Olbrich2017-06-211-1/+1
| | | | | | | | | In quiet mode PTXDIST_FD_LOGERR is stdout and the error message may be interpreted as valid output. configure scripts will capture stdout of pkg-config anyways and dump it with the rest of the output, so ordering is preserved. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_log: order bailout messages correctlyMichael Olbrich2017-06-211-8/+4
| | | | | | | | | | | | This basically reverts bf1a5b588e4c1b0ac7dbfd52d4acb4c0d1b81539 ("ptxd_make_log: improve output handling") and implements it differently. Showing the bailout message even when quiet is enabled is good, but using the error path breaks the ordering in the logfile when output-sync is enabled. Use the normal output explicitly write the message to stdout if quiet is enabled. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_xpkg: create debug ipkg packagesMichael Olbrich2017-06-216-24/+50
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_clean: fix ipkg deletionMichael Olbrich2017-06-211-1/+1
| | | | | | stderr redirection does not work with '$(< ...)' Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* cleanup package creationMichael Olbrich2017-06-216-62/+25
| | | | | | Remove indirection now, that only one package tool remains. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* remove old ipkg supportMichael Olbrich2017-06-212-44/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Debugging: add support for 'build-id'sJuergen Borleis2017-06-212-2/+24
| | | | | | | | | | | | | | | | | | | | Recent debugging tools support separate binaries and debug information files. Providing a unique 'build-id' embedded in the binary enables the debugging tools to select the correct and matching debug information files from the system's root filesystem. The 'build-id' is a 40 character calculated SHA1 from important sections in the binary. The debug information files get stored at a central direcory at "/usr/lib/debug/", with a special path based on the 'build-id'. If the 'build-id' is "123456789abcdef", the path and filename will be ".build-id/12/3456789abcdef.debug". Its possible to have more than one 'build-id' in the binary. This implementation prefers the first one in the list, which might be the wrong one. It's unclear yet how the common debugging tools will behave in this case. Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
* wrapper: add gdb wrapperMichael Olbrich2017-06-212-0/+12
| | | | | | Add arguments to set sysroot and debug-file-directory. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pkg-config-wrapper: only allow packages that are selectedMichael Olbrich2017-06-213-0/+21
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_log: improve output handlingMichael Olbrich2017-06-141-1/+8
| | | | | | | | Make it possible to use PTXDIST_FD_LOGERR to bypass output redirection. Ensure that ptxd_bailout() output is always logged and printed to the console. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_compile.sh: conditionally redirect stderr>stdoutJon Ringle2017-06-027-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I discovered after updating to a new version of ptxdist that all of my compile output including errors/warnings are now all going to stdout instead of having the errors/warning going to stderr. This is causing some problem when I use qtcreator as my IDE because qtcreator will only filter stderr for errors/warnings to put into the Issues tab, where one can simply click on the error/warning and be taken right to the source line where the error/warning is found. I found that this problem was introduced by commit 30b9267e35eea1c2edb4da0231a428bfa25b6766 This patch will conditionally redirect stderr>stdout on compile output if ptxdist has output synchronization enabled. This small program demonstrates the behavior with this patch applied: $ cat local_src/testprog/testprog.c int main(int argc, char *argv[]) { printf("Hello World, I'm testprog!\n"); exit(EXIT_SUCCESS); } $ ptxdist compile testprog >/dev/null testprog.c:4:2: error: #error An error here #error An error here ^ make[1]: *** [testprog] Error 1 make: *** [/home/jringle-admin/code/gpec/ec1k-rootfs/platform-EC1K/state/testprog.compile] Error 2 $ ptxdist compile --output-sync testprog >/dev/null make: *** [/home/jringle-admin/code/gpec/ec1k-rootfs/platform-EC1K/state/testprog.compile] Error 2 $ ptxdist compile --no-output-sync testprog >/dev/null testprog.c:4:2: error: #error An error here #error An error here ^ make[1]: *** [testprog] Error 1 make: *** [/home/jringle-admin/code/gpec/ec1k-rootfs/platform-EC1K/state/testprog.compile] Error 2 Signed-off-by: Jon Ringle <jringle@gridpoint.com> [mol: bailout to PTXDIST_FD_STDERR and more cleanup] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* configure_helper: improve parsing python3 configure fileMichael Olbrich2017-05-301-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig: avoid duplicate workMichael Olbrich2017-05-261-20/+23
| | | | | | | This is called 4 times before 'make' is executed. No need to do this multiple times. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_00-init: cache the output of ptxd_cross_cc_vMichael Olbrich2017-05-261-2/+9
| | | | | | | It's always the same and calling the compiler several times has a measurable impact on the startup time. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_install_dir: fix /usr merge handlingMichael Olbrich2017-05-191-5/+5
| | | | | | | Use 'dst' as variable name. This way install_setup() will do the correct /usr merge fixup. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* scipts: make ptxd_get_dl globaly availableMichael Olbrich2017-05-152-13/+13
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* configure_helper: improve error messageMichael Olbrich2017-05-151-0/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* configure_helper: only use args.pkg if it contains a packageMichael Olbrich2017-05-151-2/+6
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* configure_helper: add workaround for qemu configure scriptMichael Olbrich2017-05-101-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* configure_helper: improve '--help' parsingMichael Olbrich2017-05-101-10/+18
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* dosfstools: version bump: 3.0.28 -> 4.1Robert Schwebel2017-05-091-0/+18
| | | | | | | | | | Some file names have changed, adapt to new names. The labels are adapted as well, so add migration helpers. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> [mol: create legacy linsk with configure options for host-dosfstools] [mol: fix migrate patterns] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* configure_helper: strip commata from option stringsPhilipp Zabel2017-05-051-1/+1
| | | | | Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* configure_helper: improveMichael Olbrich2017-05-041-12/+34
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add script to compare configure optionsMichael Olbrich2017-04-211-0/+265
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add meson conf toolMichael Olbrich2017-04-136-11/+98
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_verbose: verbose log to stdoutMichael Olbrich2017-04-121-1/+1
| | | | | | stderr goes to the shell when quite is enable and that is not wanted here. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* wrapper: disable icecc in fakerootMichael Olbrich2017-04-111-0/+3
| | | | | | | | | | icecc creates temporary files with the username in the name. In fakeroot the username is 'root' so this can cause collisions in multi-user environments. Nothing is supposed to be compiled in fakeroot, but it can happen during 'make install' due to broken dependencies. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kconfig: update to v4.11-rc2Michael Olbrich2017-04-1114-897/+886
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* install_copy_toolchain: /usr mergeMichael Olbrich2017-04-111-2/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_install_setup_src: abort if files a found in legacy locationsMichael Olbrich2017-04-111-0/+15
| | | | | | | | This helps with migration. Otherwise files in e.g. projectroot/lib/ in the BSP a silently skipped for packages that have been converted to prefix='/usr'. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* initial /usr merge implementationMichael Olbrich2017-04-111-2/+3
| | | | | | | Any files in /bin, /sbin and /lib are transparently installed in /usr. This makes it possible to migrate each package individually. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_install_setup_src: refactorMichael Olbrich2017-04-111-19/+25
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Make sure tar archives created from svn URLs are reproducible.Guillermo Rodriguez2017-03-311-1/+1
| | | | | | | | By default, tar.gz archives store a mod time in the gzip header. This means that archives created from the same files will still have different md5 sums. Fix this by passing gzip option -n to tar. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dopermissions: don't try to create device nodes twiceMichael Olbrich2017-03-241-3/+5
| | | | | | | | This happens when ptxd_make_image_extract_xpkg_files() calls ptxd_lib_dopermissions() to fix the directory permissions and for fifos if ptxd_make_nfsd() is called more than once. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* scripts: add script that generates test certificates for RAUCEnrico Jorns2017-03-241-0/+128
| | | | | Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* udev: make udev independent from systemdJuergen Borleis2017-03-241-0/+9
| | | | | | | | | This way changes to udev from systemd cannot break the legacy udev any more. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> [mol: moajor rework] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* scripts/lib/ptxd_make: fix image root permission, don't leak user's umaskMarc Kleine-Budde2017-03-093-4/+5
| | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_patchin_fixup: fixup option checkingMichael Olbrich2017-01-271-0/+1
| | | | | | | make sure the configure scripts don't overwrite the enable_option_checking=fatal that we set in the environment. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_install_lib: skip debug files when searching for the libraryMichael Olbrich2017-01-111-1/+1
| | | | | | | Such files may be created, e.g. by qmake if 'separate_debug_info' is enabled. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_spdx: update license listMichael Olbrich2016-12-091-3/+20
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_license: fix for bash >= 4.2Michael Olbrich2016-11-291-3/+4
| | | | | | | | In bash >= 4.2 escaping '{' and '}' works differently. As a result, the output is not the same (extra '\'). Use temporary variables to handle old and new bash versions correctly. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: generate tarball -> package mappings with the dependenciesMichael Olbrich2016-11-291-0/+1
| | | | | | | This avoids "error: empty parameter to 'ptxd_make_get'" errors ptxdist tries to download a package that is not selected. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* License report: prevent unintended buildptxdist-2016.11.0Juergen Borleis2016-11-091-2/+3
| | | | | | | | | | | Independently from the PTXCONF_PROJECT_CHECK_LICENSES setting the license was extracted from each package due to this '='/'==' mismatch. Also, move the check before the loop that modifies 'this_PKG'. Otherwise the check always fails. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: never use icecc during the prepare stageMichael Olbrich2016-10-301-1/+1
| | | | | | | | | Only shore test programs are compiled here. So just do this locally and avoid the overhead from calling icecc first. This can speed up the prepare stage significantly. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_serialize_init: use --jobserver-auth if necessaryMichael Olbrich2016-10-301-2/+6
| | | | | | | In make 4.2 --jobserver-fds was renamed to --jobserver-auth and is now a public command line option. Use the new option if it is recognized. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_image_genimage: use unique directory for filtered config filesMichael Olbrich2016-10-251-3/+4
| | | | | | | | Without this, building images that use the same config files in parallel is broken. They use the same file in PTXDIST_TEMPDIR and all may use the substitutions from one of them. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>