summaryrefslogtreecommitdiff
path: root/mk/buildhlp.mk
AgeCommit message (Collapse)Author
2015-12-13rework prereq checkWaldemar Brodkorb
The new prereq check is completely implemented in POSIX shell in scripts/prereq.sh. It combines the old features from Makefile, scan-tools.sh, scan-pkgs.sh, reloc.sh and some wrappers for tools. The big benefit is to have all portability stuff in one place. Furthermore we can compile GNU make and bash on the fly, for systems lacking the required tools. All changes on the host are detected on the fly, no make prereq required anymore. The build process is separated in following three phases: 1. small wrapper Makefile is used for BSD make or GNU make 2. prereq.sh is called, doing all checking, calling Makefile.adk 3. old logic in Makefile.adk or mk/build.mk is used Tested successfully on Linux, MacOS X, Cygwin, FreeBSD, OpenBSD and NetBSD. An old depmaker bug was fixed, only optional host tools are compiled. For example, even when a host provides xz, a local xz was compiled in the past, because other packages had a build dependency on it. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
2015-12-11Revert "rework prereq check"Waldemar Brodkorb
This reverts commit fba2ff31928b18364c1934654169806f5c800e23.
2015-12-11rework prereq checkwbx
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
2015-12-06install config.sub and config.guess alwaysWaldemar Brodkorb
We need it for toolchain components. Add latest config.sub/config.guess from upstream with a minor patch for sh2eb detection.
2015-01-09use PKG_NOCHECKSUMWaldemar Brodkorb
2014-06-21s/TOPDIR/ADK_TOPDIR/Waldemar Brodkorb
to avoid namespace collisions in some packages, rename TOPDIR. Sorry you need to make cleandir && make prereq && make
2014-06-18use libc specific patching to avoid any side effects in the gcc patches, as ↵Waldemar Brodkorb
seen in buildroot recently
2014-06-11ignore config.sub/config.guess, do not create backup and restore it on ↵Waldemar Brodkorb
update-patches, fix some minor issues. PIE can only be used for binaries and need support in a package
2014-06-08fix arch specific patch applyWaldemar Brodkorb
2014-06-02refactor CPU_ARCH/ARCH variablesWaldemar Brodkorb
After Joerg asked me about the difference between ADK_TARGET_ARCH and ADK_TARGET_CPU_ARCH I recognized many duplication of variables for this information. These patch fixes this up. Use make cleandir && make menuconfig && make
2014-05-25non-verboseWaldemar Brodkorb
2014-05-03more flexible list of files to ignore when doing update-patchesThorsten Glaser
e.g. for use with autoconf, but also for build-time generated files that are part of the distfile Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
2014-05-03proper quoting in GNUmakefile as wellThorsten Glaser
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
2014-05-03move calling update-patches into a separate mksh script update-patches2 ↵Thorsten Glaser
handling quoting much better Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
2014-05-03require mksh for the update-patches helper scriptThorsten Glaser
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
2014-04-26use XZ tarballs as defaultWaldemar Brodkorb
2014-04-07only use patch for ARCH == sparcWaldemar Brodkorb
2014-03-31better fixWaldemar Brodkorb
2014-03-31need to export PATHWaldemar Brodkorb
2014-03-30build host tools on demand, when not available on the hostWaldemar Brodkorb
2014-03-30rework hosttools building, add tools into package stuffWaldemar Brodkorb
2014-02-18use bin directory for host binaries only, use new firmware directory for the ↵Waldemar Brodkorb
resulting firmware
2013-10-31forgot to import regular expression moduleWaldemar Brodkorb
2013-10-30fix update-patches when WRKDIST is overwritten in the MakefileWaldemar Brodkorb
2013-10-29inverse logic to avoid error messageWaldemar Brodkorb
2013-10-29Merge branch 'master' of git+ssh://openadk.org/git/openadkWaldemar Brodkorb
2013-10-29convert tslib to autotool infrastructure, downgrade m4, newest version have ↵Waldemar Brodkorb
problems generating correct Makefiles
2013-10-29update python2 and use new host infrastructureWaldemar Brodkorb
2013-10-28fix host build stuff and update-patches, convert cifs-utils and libaudiofile ↵Waldemar Brodkorb
to new autotool infrastructure
2011-08-22allow FETCH_STYLE=manual to succeed. simplify fetch loop.Waldemar Brodkorb
2011-04-03fix extraction problemsWaldemar Brodkorb
2011-01-10add LTO support to toolchain settings. Cleanup SYSROOT mess.Waldemar Brodkorb
- just use on sysroot directory for toolchain. - add missing patches from previos commit. (rpath/cflags cleanup)
2011-01-08fix make clean target ruleWaldemar Brodkorb
correct the wrong path and remove the correct files on clean. Finetune more directory creation rules.
2010-12-14avoid output on post-extractWaldemar Brodkorb
2010-10-16Merge branch 'master' of git+ssh://openadk.org/git/openadkWaldemar Brodkorb
Conflicts: package/freeradius-server/Makefile package/nss/patches/patch-mozilla_security_coreconf_Linux_mk
2010-09-15rebuild packages on flavour or choices changeWaldemar Brodkorb
add new target rebuild. make cpio and pacch quiet. Use bin/tools for cpio and mkcrypt.
2010-08-05update lemote to 2.6.35, enable version specific patches for kernel-header ↵Waldemar Brodkorb
patches
2010-02-28revert change, variable is used in update-patchesWaldemar Brodkorb
2010-02-27fix checksum check of toolchain archives after downloadWaldemar Brodkorb
and update alix/wrap targets to 2.6.33
2010-02-07change defaults for CONFIG/BUILD/INSTALL stylesWaldemar Brodkorb
All packages need an update, so here is a very huge commit. Most of the 460 source packages use automatic style for configuration, building and installing. Make these styles default to "auto". If you have a package, which does not conform to this, just use manual style and add a do-$task make target. I added a new style named AUTOTOOL style, which is needed for some broken packages, which needs to be updated via autoconf or automake. I renamed CONFIGURE_STYLE to CONFIG_STYLE. Updates for some packages, which have newer upstream versions. Renaming of all package/*/extra directories. Use the directory src/ to provide overwrites of source files or to add the code, when no upstream package is available or used. src directory will be automatically used.
2009-10-01some native build fixesLinux User
- git package needs a better fix. but existing symlinks are broken build without perl - update curl to latest upstream, including libcurl-dev package - add libopenssl-dev package
2009-06-01remove unused $Id$Waldemar Brodkorb
- $id$ substitution is not apropriate for git scm
2009-05-30optimize ipkg package managementWaldemar Brodkorb
- generate ipkg control file from PKG_* variables - automatically install init scripts from ./files/*.init set #PKG pkgname to set the binary package - rename FWINIT -> INIT - move postinst and conffiles meta data to ./files - update the packages to the latest upstream version - remove some unready or unused package (strongswan,..) more cleanups needed after allmodconfig
2009-05-23- cleanup and document PKG_template, ARCH parameter is not needed anymoreWaldemar Brodkorb
- use CPU_ARCH for fake dir and ipkg - enable DEBUG option in menu and rename to ADK_DEBUG
2009-05-17Initial importwbx