summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* [ptxd_make_world_common] use <PKG>_CONF_ENV when setMichael Olbrich2010-01-101-6/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [dgen] add default package name & source variables for host-* and cross-* ↵Michael Olbrich2010-01-101-2/+14
| | | | | | packages Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_common] activate binconfig_globMarc Kleine-Budde2010-01-101-0/+6
| | | | | | | This patch activates the binconfig_glob mechanism as described in commit 61211865e20efac9042ad89a9a5c28e4bc0d3100. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] introduce new variable ${PKG}_BINCONFIG_GLOBMarc Kleine-Budde2010-01-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces a new per package variable ${PKG}_BINCONFIG_GLOB. By default this variable contains "*-config". As the name suggests it holds a shell glob pattern, intended to match the per package "-config" tools. In a later patch this mechanism is activated, then all files matching this glob pattern are copied into ${SYSROOT_CROSS}/bin. This eliminates the need for custom install stages, where these '*-config' files are copied manually. For example 'libpng': After a make install we see this in the bin directory: $ ll libpng-1.2.42/usr/bin/ total 12K drwxr-xr-x 2 frogger frogger 4.0K 2010-01-09 11:43 ./ drwxr-xr-x 6 frogger frogger 4.0K 2010-01-09 11:43 ../ -rwxr-xr-x 1 frogger frogger 2.3K 2010-01-09 11:43 libpng12-config* lrwxrwxrwx 1 frogger frogger 15 2010-01-09 11:43 libpng-config -> libpng12-config* The default "*-config" matches both files, they are copied automatically into ${SYSROOT}. Of course these -config files must be SYSROOT ware, i.e. they must respect the env var SYSROOT and add it e.g. to their prefix. $ ll sysroot-cross/bin/libpng* -rwxr-xr-x 1 frogger frogger 2.3K 2010-01-09 15:15 sysroot-cross/bin/libpng12-config* lrwxrwxrwx 1 frogger frogger 15 2010-01-09 15:15 sysroot-cross/bin/libpng-config -> libpng12-config* In case a package doesn't want files to be copied it can define the per package varibale: ${PKG}_BINCONFIG_GLOB := "" Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] consolidate rc file handlingMarc Kleine-Budde2010-01-061-0/+2
| | | | | | | | | | | | | First this patch moves the ptxdistrc file into '~/.ptxdist/' since my homedir contains quite a low of .ptxdistrcs now. Then another variable is introduced: - PTXDIST_VERSION_PTXRC which holds the the version for the rc file. It consists for simplicity reasons of just "$year.$month". Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] adopt config file version handling to cope with dynamic fullversionMarc Kleine-Budde2010-01-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the past ptxdist's fullversion was replaced by configure in these files: - platforms/ptxdist-version.in.in (PLATFORMCONFIG_VERSION) - rules/ptxdist-version.in.in (CONFIGFILE_VERSION) resulting in: - platforms/ptxdist-version.in - rules/ptxdist-version.in However the fullversion is rather dynamic now since it can hold version information from the version control system. ptxdist refuses to run if the versions don't match. During development this may change quite often which is probably too annoying for the developers. This patch introduces two new version variables: - PTXDIST_VERSION_CFG_SCM - PTXDIST_VERSION_CFG_FULL The _SCM variable holds "-git" if ptxdist isn't release. For released versions _SCM is empty. PTXDIST_VERSION_CFG_FULL contains '$year.$month.$bugfix$scm' (scm is PTXDIST_VERSION_CFG_SCM), for example: '2010.01.0-git' for modifies i.e. dirty '2010.01.0' release. Further we don't no longer modify the "*/ptxdist-version.in.in", we use the kconfig 'option env="VAR"' to get the correct version from the environment. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] let variables of PTXDIST_VERSION_* reflect timed releasesMarc Kleine-Budde2010-01-061-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The upcomming releases of ptxdist will follow a time based scheme: ptxdist-xxxx.yy.z ^^^^ ^^ ^----------- Bugfix Number, starting at 0 \ \------------- Month \---------------- Year This patch removed the old PTXDIST_VERSION_* variables: - PTXDIST_VERSION_MAJOR - PTXDIST_VERSION_MINOR - PTXDIST_VERSION_MICRO - PTXDIST_VERSION_EXTRA and replaces them according to the new scheme with: - PTXDIST_VERSION_YEAR - PTXDIST_VERSION_MONTH - PTXDIST_VERSION_BUGFIX (For the first release the VERSION_EXTRA will be dropped and may be added later again) There is one new variable: - PTXDIST_VERSION_SCM holding version information from the version control system (SCM = Source code Control Management). It's the appendix known from the linux kernel like '-gb91d1ff-dirty'. The variable: - PTXDIST_VERSION_FULL consists of '$year.$month.$bugfix$scm'. For example: '2010.01.0-gb91d1ff-dirty' Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [setlocalversion] import scripts/setlocalversion from the linux kernelMarc Kleine-Budde2010-01-061-0/+82
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_init_compat] use <PKG>_MAKE_ENV when setMichael Olbrich2010-01-041-3/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [sysroot-cross] add dummy-stripWolfram Sang2009-12-261-0/+11
| | | | | | | | | Provide a dummy, no-op version of strip as a lot of makefiles (and install -s) execute just 'strip' and this leaks in the host version. This approach should be OK as we do stripping at a later stage anyway and want to keep the debug-info until then. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
* [bootloader] better "special" compiler handling for bootloaderMarc Kleine-Budde2009-12-261-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes the special compiler handling for bootloaders more generic. To understand what it does, we look at the current status: There is the config symbol "COMPILER_PREFIX_UBOOT", if its value differs from the generic "COMPILER_PREFIX"'s value a special compiler for u-boot is requested. Currently only u-boot-v2 uses this feature. So if "U_BOOT_V2" is active we look if ".utoolchain/$(PTXCONF_COMPILER_PREFIX_UBOOT)gcc" can be found. If not we ask the user to create the link. The reader might notice that all other configuration links are named "selected_*" and that this feature is only limited to u-boot-v2. To make this more generic, this patch first renames "COMPILER_PREFIX_UBOOT" into "COMPILER_PREFIX_BOOTLOADER", then a new symbol "BOOTLOADER" is introduced. All bootloaders that support the new sheme should select "BOOTLOADER". Now a selected "BOOTLOADER" activates the check for the special toolchain. The link is renamed to "selected_toolchain_bootloader" to fit the current scheme. The bootloaders can use the variable "BOOTLOADER_CROSS_COMPILE" which can be directly passed to kbuild's CROSS_COMPILE. A migration handler ist added, so the required symbol conversion is done automatically by "ptxdist migrate". Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist_vars] rename build-target-klibc -> build-klibc-targetMarc Kleine-Budde2009-12-251-1/+1
| | | | | | | This helps people using tab completion a lot. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Acked-by: Jon Ringle <jon@ringle.org>
* [libptxdist] fixed comment, we're using git nowMarc Kleine-Budde2009-12-251-2/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdist] simplification of dumpstackMarc Kleine-Budde2009-12-251-7/+9
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* version cleanupsMarc Kleine-Budde2009-12-252-10/+9
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_lib_kgen.sh] put tick into correct positionRobert Schwebel2009-12-181-1/+1
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* [ptxd_lib_kgen] re-enable boardsetup and setupRobert Schwebel2009-12-181-0/+1
| | | | | | | | | Since 96c9beeb, 'ptxdist boardsetup' and 'ptxdist setup' bailed out with an error message: ptxdist: error: 'ptxd_kgen' doesn't support 'board, yet Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* [genhdimg] Fixed a problem where genhdimg could generate a corrupt image fileGeorge McCollister2009-12-161-1/+13
| | | | | | | | | | | | | pad() wasn't always padding the output file to the correct length. On some machines dd wasn't reading full blocks which resulted in an incorrectly padded file. pad() now makes one call to dd to write the input file using conv=sync to pad to the nearest 512 byte boundry. Then dd is called again if additional 512 byte '\0' blocks are needed to meet the padding size. Signed-off-by: George McCollister <georgem@novatech-llc.com> Tested-by: George McCollister <georgem@novatech-llc.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_lib_kgen] support generation of the platform menuMarc Kleine-Budde2009-12-152-6/+31
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* check_deps: run ptxd_kgen implicit during ptxd_dgenMarc Kleine-Budde2009-12-151-3/+1
| | | | | | don't run it explizitly before calling ptxd_dgen Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [tags] new default for tag generation is "tags ctags"Marc Kleine-Budde2009-12-031-2/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world] rename pkg_pkgdir -> pkg_pkg_dirMarc Kleine-Budde2009-11-093-15/+15
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] only have two install functionsMarc Kleine-Budde2009-11-091-10/+5
| | | | | | one for target the other for host and cross pacakges. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] fix error messageMarc Kleine-Budde2009-11-091-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] move sysroot calculation into ptxd_make_world_commonMarc Kleine-Budde2009-11-092-12/+14
| | | | | | | ..and introduce the variable: "pkg_sysroot_dir" which points to the package's sysroot. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_prepare.sh] disable cache file for nowMichael Olbrich2009-11-091-17/+17
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_common.sh] fix pkg_build_dir checkMichael Olbrich2009-11-091-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_install_mangle_pc.awk] also replace $pkg_pkgdirMichael Olbrich2009-11-091-1/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_common] re-add DESTDIR="" for host- and cross- packagesMarc Kleine-Budde2009-11-071-1/+2
| | | | | | This has been removed and several packages are breaking now. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_tags] add generic "tags" targetMarc Kleine-Budde2009-11-062-0/+33
| | | | | | | | | | | | | | | | | | | | | | To generate tag for a certain pacakge, call ptxdist this way: $ ptxdist tags <package> PTXdist basically runs: $ make <PKG>_TAGS_OPT <PKG>_TAGS_OPT default to "tags", which is a good default for autotoolizised packages. Of course it can be overwritten on a per package base, e.g.: BUSYBOX_TAGS_OPT := tags TAGS scope Why: 1) non autotool based build system, that has cscope support. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world] new variable <PKG>_INSTALL_OPTMarc Kleine-Budde2009-11-062-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The install stage consists basically of: make DESTDIR=<PKG>_PKGDIR <PKG>_INSTALL_OPT With default "install" for <PKG>_INSTALL_OPT. This can be overwritten or extended from a pacakge. There are (at least) two reasons for this: 1) "make install" installs too mouch, you don't want to install everything. example: MII_DIAG_INSTALL_OPT := install-mii-diag 2) The package doesn't understand DESTDIR. It uses INSTALL_ROOT instead. example: QT4_INSTALL_OPT := INSTALL_ROOT=$(QT4_PKGDIR) The variable <PKG>_PKGDIR comes predefined from PTXdist and can be used. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world] new variable <PKG>_MAKE_OPTMarc Kleine-Budde2009-11-061-4/+5
| | | | | | | | | | | In the compile stage no agrument is passed to <make>. Use the variable <PKG>_MAKE_OPT to pass additional arguments. example: MII_DIAG_MAKE_OPT := $(CROSS_ENV_CC) mii-diag Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] don't use fakeroot for cross- packagesMarc Kleine-Budde2009-11-041-1/+1
| | | | | | it's only used for target packages Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] add klibc- packages infrastructureJon Ringle2009-11-042-3/+12
| | | | | | Signed-off-by: Jon Ringle <jon@ringle.org> [mkl: split into smaller patches, add support for generic extract stage] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* Busybox-1.15.2Ladislav.Michl@seznam.cz2009-11-031-1/+8
| | | | | | Signed-off-by: Ladislav Michl <ladis@linux-mips.org> [mkl: add migration helper for long opt option] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] fix "local -a" + IFS problemMarc Kleine-Budde2009-11-034-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a problem with bash-3.0.x. This old bash versions doesn't respect IFS when splitting a variable: This costruct doesn't work: foo="bar:baz" local -a qux=( ${foo} ) echo "${foo[@]}" it prints: bar:baz bash > 3.0.x prints bar baz The correct sequence is to first declare qux as a local array and then assign it: local -a qux qux=( ${foo} ) Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [scripts] remove obsolete scriptsMarc Kleine-Budde2009-10-287-3248/+0
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [dep_hunter] fix for current ptxdistMichael Olbrich2009-10-271-4/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [xorg-check] add missing newlineRobert Schwebel2009-10-261-1/+1
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* [xorg-check] added test scriptRobert Schwebel2009-10-261-0/+31
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* [autogen] create automatic dependencies for packages that need to run autogen.shMichael Olbrich2009-10-261-0/+17
| | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] add share/pkconfig to host's PKG_CONFIG_LIBDIR, tooMarc Kleine-Budde2009-10-261-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_00-init] let pkg-config search in $(datadir)/pkgconfig, tooMarc Kleine-Budde2009-10-221-20/+13
| | | | | | | | | | | | | | This patch cleans up the usage of PKG_CONFIG_LIBDIR and PKG_CONFIG_PATH. PKG_CONFIG_LIBDIR now points to both "lib/pkgconfig" and "share/pkgconfig" for both "/" and "/usr" prefixed with all sysroots. ("share/pkgconfig" was missing before). User defined "PTXCONF_PKG_CONFIG_PATH" are prefixed with the (normal) sysroot and added to PKG_CONFIG_PATH. Support for production sysroot is still outstanding. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_00-init] properly reset IFS to original valueMarc Kleine-Budde2009-09-291-1/+1
| | | | | | | Causes "ptxdist menu" -> kernel -> exit to break Reported-by: Erwin Rol <erwin@erwinrol.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_00-init] add support for production sysrootMarc Kleine-Budde2009-08-171-0/+36
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [dgen] add support for new "BASE" dependenciesMarc Kleine-Budde2009-08-171-2/+18
| | | | | | | | | | Until this patch all target packages depent automatically on the "virtual-cross-tools", which provide fakeroot, pkgconfig and so on. In order to install certain "target" pacakge before _all_ other target packages the "BASE" package is introduced. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] fix "ptxdist -k" featureMarc Kleine-Budde2009-08-101-1/+3
| | | | | | | | | | Using an array for make's args prevents to let space slip into the args, which confuses make. $ ptxdist -k go make: *** No rule to make target ` -k'. Stop. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world] put pkg_config vars environemnt of every stageMarc Kleine-Budde2009-08-074-1/+10
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] activate .pc file mangler, don't add sysroot in ↵Marc Kleine-Budde2009-08-062-24/+11
| | | | | | | | | pkg-config-wrapper anymore pkg-config's .pc file are now relocatable, the pkg-config-wrapper isn't needed anymore. Thus it's disabled now. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install_mangle_pc] make .pc file relocatableMarc Kleine-Budde2009-08-061-0/+78
| | | | | | this gawk script makes pkg-config's pc files relocatable. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>