aboutsummaryrefslogtreecommitdiff
path: root/scripts (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* typo fixDenys Vlasenko2015-10-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* scripts/trylink: remove $CPPFLAGSDenys Vlasenko2015-10-201-3/+3
| | | | | | | We don't use it in final link, should not use it in check_FOO then. This uncovered a logic bug in glibc check... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* scripts/trylink: fix bit-rotted linker option verificationDenys Vlasenko2015-10-201-24/+35
| | | | | | | | | | | | | | To that end, *make it complain* when check_cc fails on options we usually want to succeed. text data bss dec hex filename 929697 932 17692 948321 e7861 busybox-1.23.2/busybox 915361 911 17484 933756 e3f7c busybox-1.23.2.fixed/busybox 927725 932 17448 946105 e6fb9 busybox-1.24.0/busybox 913630 911 17240 931781 e37c5 busybox-1.24.0.fixed/busybox Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randconfig fixesDenys Vlasenko2015-10-111-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix if(p)/free(p) constructManinder Singh2015-06-072-4/+2
| | | | | | | | No need of explicit NULL check before free. Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixesManinder Singh2015-05-251-1/+1
| | | | | Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trylink: respect compiler settings when probing featuresMike Frysinger2015-03-161-2/+2
| | | | | | | | The CPPFLAGS/CFLAGS settings might have features that matter, so make sure we utilize them when testing the compiler. URL: https://bugs.gentoo.org/471118 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* trylink: use mktemp instead of hardcoding pathsMike Frysinger2015-03-161-4/+4
| | | | | | | This way we respect standard tempdir env vars and are guaranteed to be unique. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* trylink: emit names of linked executablesDenys Vlasenko2014-05-031-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe-small: fix help messages for aliased module-related appletsDenys Vlasenko2014-04-191-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: specify '-nostldlib' when linking to .o filesDrew Moseley2014-04-021-1/+2
| | | | | | | | | | | | | | | | | | | For certain cross build scenarios the LD variable is overridden to use the gcc executive to ensure all the target tuning parameters are used. In these cases, the executive errors out as shown below but since this step is only linking to a .o file the standard libs are not needed. $ make LD=gcc applets/built-in.o LD applets/built-in.o /usr/bin/ld: cannot find -lgcc_s /usr/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status make[1]: *** [applets/built-in.o] Error 1 make: *** [applets_dir] Error 2 Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: for "find", use POSIX not operator (!) instead of -notDenys Vlasenko2014-03-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: fix non-portable sed constructs.Matthias Andree2014-01-101-2/+12
| | | | | | | | This includes proper line breaks for labels and closing braces, and removing non-portable \n and \t in s/// functions. Signed-off-by: Matthias Andree <matthias.andree@gmx.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: stop including alloca.h, stdlib.h provides itDenys Vlasenko2014-01-092-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix failures found by randomconfig buildsDenys Vlasenko2013-12-311-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: fix make gconfigDaniel Borca2013-12-191-1/+1
| | | | | | | Was getting "undefined reference to symbol 'dlsym@@GLIBC_2.2.5'". Signed-off-by: Daniel Borca <dborca@yahoo.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: use od -b instead of od -t x1Denys Vlasenko2013-11-261-2/+2
| | | | | | od -t is not available in non-CONFIG_DESKTOPed busybox od Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bloat-o-meter: add usage infoBartosz Golaszewski2013-10-161-3/+8
| | | | | Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trylink: only prefix libs with -lMike Frysinger2013-09-281-3/+3
| | | | | | | | | If our pkg-config queries pass back a flag like -pthread, the trylink script will expand that to -l-pthread. So change trylink to only add the -l prefix to a value that doesn't have a - prefix already. Reported-by: thaehaid@incognitomail.org Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* buildsys: Add helper to list suid appletsBernhard Reutner-Fischer2013-07-261-4/+20
| | | | | | | | | | | | | Add a helper script that lists all applets that - do or may require SUID provileges (busybox.cfg.suid) - do not require SUID provileges (busybox.cfg.nosuid) Some setups prefer to build two busybox binaries, one that is suid which contains all applets that do or may require suid privileges, and a second one for all the rest (which drops suid). To ease splitting these two binaries, generate a list of CONFIG_ items for the suid binary. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* scripts/kconfig/mconf: work on systems w/o SIGWINCHDenys Vlasenko2012-09-271-5/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: fix build of kconfig on DarwinBernhard Walle2012-06-181-0/+2
| | | | | | | | | Of course busybox cannot be used on Darwin (Mac OS X), but it can be cross-compiled for Linux there. Cross-compilation still requires kconfig to be built as native host tool. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix build breakage found by randconfigDenys Vlasenko2012-04-201-3/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bloat-o-meter: Remove unused codeBernhard Reutner-Fischer2012-03-301-15/+6
| | | | | | | The regex matching is way slower, so remove it since it was disabled anyway. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* bloat-o-meter: handle huge (hex) sizes.Bernhard Reutner-Fischer2012-03-301-1/+1
| | | | | | | dynamic symbols with size >99999 are printed in hex. see print_vma(psym->st_size, DEC_5) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* gen_build_files.sh: exclude hidden directoriesPaulius Zaleckas2012-01-301-2/+5
| | | | | | | | | | | | | | | | | I am using quilt to manage patches internally. Quilt creates dir .pc and stores unmodified files there. Since I made change in one of Config.src quilt made a copy in .pc/xxx.patch/xxx/Config.src. When I run make it calls gen_build_files.sh and it generates .pc/xxx.patch/xxx/Config.in. Now when I want to pop patch quilt thinks I have made changes to original xxx/Config.in. IMO the best solution is just to ignore hidden directories in gen_build_files.sh. This also results in shorter build time in case busybox is under git/svn versioning, since it avoids searching many directories for Config.src. Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* gen_build_files.sh: simplify "print everything up to INSERT line" partDenys Vlasenko2011-10-191-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* gen_build_files: don't pass 200k+ strings as params. Closes 4321Denys Vlasenko2011-10-191-33/+23
| | | | | | Also removes one grep per generated file. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* suppress "warning: implicit declaration of function 'alloca'"Denys Vlasenko2011-09-152-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bloat-o-meter: don't require that pythin is in /usr/bin.Lauri Kasanen2011-07-081-2/+2
| | | | | Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Support configuring Busybox from _defconfig filesDaniel Fandrich2011-07-081-1/+1
| | | | | | | | | The existing test .config files are moved to configs/ and renamed to *_defconfig. 'make xyz_defconfig' will enable the configuration in that specific file. Signed-off-by: Daniel Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pam link error with SHARED_BUSYBOX and LIBBUSYBOX enabledSteve Iribarne2011-05-091-0/+1
| | | | | Signed-off-by: Steve Iribarne <siribarne@grid-net.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* get rid of several "variable 'x' set but not used" warningsCristian Ionescu-Idbohrn2011-05-012-14/+5
| | | | | Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build fixes for scripts/kconfigDenys Vlasenko2011-04-182-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix another nonportable grep usage in scriptsDenys Vlasenko2011-04-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* gen_build_files.sh: do not use "sed --" for nowDenys Vlasenko2011-04-161-4/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix double words in comments. No code changesMarek Polacek2011-04-161-1/+1
| | | | | Signed-off-by: Marek Polacek <mpolacek@redhat.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bit rot in scripts/Makefile.IMA #2Denys Vlasenko2011-03-061-9/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bit rot in scripts/Makefile.IMADenys Vlasenko2011-03-061-1/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* scripts/mkconfigs: don't use invalid basic regexpDenys Vlasenko2011-02-091-1/+1
| | | | | | \? are GNU extension and thus are non-standard Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* scripts/kconfig/mconf.c: stop-gap fix for buffer overflowDenys Vlasenko2011-02-071-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* scripts: fix fixdep.c to let it workable in cygwinMacpaul Lin2010-12-181-1/+1
| | | | | | | | | Update retrun character detection in the fixdep.c to let it work in cygwin. Signed-off-by: Macpaul Lin <macpaul@andestech.com> Signed-off-by: Greentime <green.hu@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Revert "scripts: fix fixdep.c to let it workable in cygwin"Denys Vlasenko2010-12-181-1/+1
| | | | This reverts commit 10c36b86574133bb1cd29ad04db64c7953b94ab5.
* scripts: fix fixdep.c to let it workable in cygwinGreentime2010-12-181-1/+1
| | | | | | | | | Update return character detection in the fixdep.c to let it workable in cygwin. Signed-off-by: Macpaul Lin <macpaul@andestech.com> Signed-off-by: Greentime <green.hu@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* gen_build_files.sh: better commentDenys Vlasenko2010-11-251-3/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: fix for dashDenys Vlasenko2010-11-241-3/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fixes for bugs discovered by randomconfig builds and testsDenys Vlasenko2010-11-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* gen_build_files.sh: restore deleted commentDenys Vlasenko2010-11-211-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* gen_build_files.sh: rewrite with sedMike Frysinger2010-11-161-53/+47
| | | | | | | | | The shell parsing of files is incredibly slow on many systems. With one report, the process was taking a minute or two which made people thing the build was hung. So rewrite the craziness with sed and proper shell functions. On an idle system, this cut the runtime by half. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* typo fixDenys Vlasenko2010-11-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>