summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* scripts/genenv: always pass template to mktempDirk Hörner2012-06-051-1/+1
| | | | | | | Passing a template to mktemp is mandatory on OS X. Signed-off-by: Dirk Hörner <dirker@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts/compiler.h: fixup endianess defines on OS XDirk Hörner2012-06-051-0/+3
| | | | | Signed-off-by: Dirk Hörner <dirker@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* hostcc tools: include "compiler.h", fix included headersDirk Hörner2012-06-051-0/+2
| | | | | | | | | When barebox headers get included from HOSTCC tools they should not include other architecture specific headers as barebox might get cross-compiled. Instead, the tool itself should include "compiler.h". Signed-off-by: Dirk Hörner <dirker@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kbuild: Use Elfnn_Half as replacement for Elfnn_SectionSam Ravnborg2012-06-051-2/+2
| | | | | | | | | The Elfnn_Section is not available on all platforms, noteworthy are cygwin. Use the safe replacement _Half. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* S5P boot header and image generatorAlexey Galakhov2012-05-212-0/+141
| | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix typo funtion -> functionAntony Pavlov2012-05-131-1/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* netX: add more common permissionsJuergen Beisert2012-04-231-1/+2
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* netX: adapt it to the current boot specJuergen Beisert2012-04-231-7/+11
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Makefile: fix build timestampsSascha Hauer2012-04-151-0/+96
| | | | | | | | | | | This patch adds the scripts/mkcompile_h from the Kernel. This gives us additional information about the build like who built this binary and with which compiler. Currently the only information used is the build timestamp and the generation number. This also fixes the build timestamp in the banner which is now correct even with consecutive builds without making clean in between. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make building of bareboxenv-target optionalSascha Hauer2012-04-131-1/+1
| | | | | | | The bareboxenv script build for the target does not work on all architectures, so make it optional. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* build bareboxenv for the target as wellMichael Olbrich2012-04-051-0/+8
| | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kconfig: sync to linux 3.2-rc4Jean-Christophe PLAGNIOL-VILLARD2012-01-1128-587/+5595
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* scripts/Kbuild.include: update to latest kernel versionSascha Hauer2012-01-021-41/+102
| | | | | | To get cc-disable-warning Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts/Makefile.lib: update compress cmd supportJean-Christophe PLAGNIOL-VILLARD2012-01-021-1/+66
| | | | | | | | | import from linux 3.2-rc3 update gzip and add bzip2, lzma, lzo and xz Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move code now only used in mkimage to mkimageSascha Hauer2011-12-151-0/+240
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts/mkimage.c: remove unnecessary includeSascha Hauer2011-11-291-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add setupmbr to gitignoreLucas De Marchi2011-11-111-0/+1
| | | | | Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'master' into nextSascha Hauer2011-10-233-3/+3
|\
| * Avoid warnings by using format(__printf__)Loïc Minier2011-10-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building sandbox, barebox is built with -Dprintf=barebox_printf as to not collide with the printf provided by libc. This would also match the format(printf) function __attribute__. Since gcc documents that __printf__ can be used instead of printf as a format attribute, use this instead and avoid a lot of noisy warnings. NB: this relates to 6b082cfe9f9b5b2bea294918ad916c739490cea7 which was an earlier attempt at solving this, which got reverted due to other regressions. Signed-off-by: Loïc Minier <loic.minier@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Only pass -P to cpp when generating ld scriptsLoïc Minier2011-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building sandbox with ccache, one would hit warnings such as: warning: 'struct mmsghdr' declared inside parameter list on random files; a way to reproduce this issue is to build a simple file doing just: #include <sys/socket.h> int main(void) { return 0; } gcc -Wall -P -c -o foo foo.c But actually the -P flag is only useful when generating non-C files, such as linker scripts in the case of barebox. Removing the -P flag from all the gcc invocations, except when generating .lds files makes the warning go away. It turns out that this is what linux/scripts/Makefile.build also does nowadays. Signed-off-by: Loïc Minier <loic.minier@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | move digest to crypto/Jean-Christophe PLAGNIOL-VILLARD2011-10-122-2/+2
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* image: use data base addr for image_print_contents, image_multi_count/getimgJean-Christophe PLAGNIOL-VILLARD2011-09-281-2/+3
| | | | | | | | as in barebox the data could be the mapped file or a allocated memory with just the data (non header) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts/getenv: delete backup files from enviroment directoryHubert Feurstein2011-06-011-1/+2
| | | | | | | | Also add the '--no-run-if-empty' option to xargs to avoid an error message when no files/folders were found. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix genenv when using svn based enviroment directoryTim Sander2011-05-231-0/+2
| | | | | | | | | | | | | | Hi When setting the default env of barebox to a svn directory the build stops with questions on removal and the barebox env is polluted with svn files. The patch below fixes that. Tested with 2011.03.1. Newer versions don't boot anymore on my pcm043 :-(. Signed-off-by: Tim Sander <tim.sander@hbm.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: Fix compilation warning.Marek Belisko2011-05-041-4/+2
| | | | | | | | | | | Fix following warning: scripts/kallsyms.c: In function ‘read_symbol’: scripts/kallsyms.c:81:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result Solution overtaken from kernel tree. Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: Add omap signGP tool and possibility to build ift imagesSascha Hauer2011-04-122-0/+314
| | | | | | | The tool is needed to build images suitable for omap processors to load from mmc or nand. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* script: update git ignore fileSascha Hauer2011-04-111-1/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86: Use the generic linker script initializingJuergen Beisert2011-03-101-1/+1
| | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* kconfig: syn with linux kernel v2.6.38-rc3Jean-Christophe PLAGNIOL-VILLARD2011-02-0227-940/+1206
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Fix error handling with malloc, memalign etc. Introduce xmemalign().Krzysztof Halasa2011-01-072-3/+6
| | | | | | | | | | | | | | The idea is to panic() when there is no memory available for normal operation. Exception: code which can consume arbitrary amount of RAM (example: files allocated in ramfs) must report error instead of panic(). This patch also fixes code which didn't check for NULL from malloc() etc. Usage: malloc(), memalign() return NULL when out of RAM. xmalloc(), xmemalign() always return non-NULL or panic(). Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: Adapt checkpatch.pl for barebox.Marek Belisko2010-11-291-3/+3
| | | | | | | | Add directories from root of barebox to top_of_kernel_tree() function for usage of script without additional parameters. Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: Add checkpatch.pl script.Marek Belisko2010-11-291-0/+2950
| | | | | | | Overtake script checkpatch.pl from kernel source. Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86: fix out of tree build supportJean-Christophe PLAGNIOL-VILLARD2010-11-171-2/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* doc: add macros to unify command help with doxygenRobert Schwebel2010-11-011-0/+103
| | | | | | | | | Currently we have duplicated all the information that appears online in 'help <command>' and in the doxygen documentation. This patch adds some infrastructure to specify help texts only once and re-use them for the integrated help as well as for the manual. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* image: remove confusing image_check_* functionsSascha Hauer2010-10-131-1/+1
| | | | | | | | | | | The function names do not make it clear what return value is expected and do not save a single line of code. Put the code inline and unbreak the wrong checks introduced with a3c1e5d888d0ee317ffc7635694684bb71213c9c. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Eric Bénard <eric@eukrea.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* image: factorise image printing contentsJean-Christophe PLAGNIOL-VILLARD2010-10-081-69/+4
| | | | | | Copied from U-Boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Replace direct header access with the API routinesJean-Christophe PLAGNIOL-VILLARD2010-10-081-41/+43
| | | | | | Copied from U-Boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* image: rename IH_CPU to IH_ARCH to be more concistantJean-Christophe PLAGNIOL-VILLARD2010-10-081-1/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* image: factorise string helperJean-Christophe PLAGNIOL-VILLARD2010-10-081-113/+8
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Revert "image: factorise string helper"Sascha Hauer2010-10-071-8/+113
| | | | This reverts commit 7bd7d59e60f3f23862ebc09c9f3527ee24b2960f.
* Revert "image: rename IH_CPU to IH_ARCH to be more concistant"Sascha Hauer2010-10-071-1/+1
| | | | | | | | | | This reverts commit aba80a2d2d0f1b25185246925577ce2108247dde. Conflicts: include/image.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "Replace direct header access with the API routines"Sascha Hauer2010-10-071-43/+41
| | | | | | | | | | This reverts commit 0ceafe14be072696eff3e549d8c7b7de8a3e416d. Conflicts: include/image.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "image: factorise image printing contents"Sascha Hauer2010-10-071-2/+69
| | | | This reverts commit d424ce77f5e9295584252452dbd78eea562c9af0.
* host: introduce compiler.h to handle host includeJean-Christophe PLAGNIOL-VILLARD2010-09-242-37/+108
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* image: factorise image printing contentsJean-Christophe PLAGNIOL-VILLARD2010-09-241-69/+2
| | | | | | | before we duplicate it between command/bootm.c and scripts/mkimage.c Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Replace direct header access with the API routinesJean-Christophe PLAGNIOL-VILLARD2010-09-241-41/+43
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* image: rename IH_CPU to IH_ARCH to be more concistantJean-Christophe PLAGNIOL-VILLARD2010-09-231-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* image: factorise string helperJean-Christophe PLAGNIOL-VILLARD2010-09-231-113/+8
| | | | | | | before we duplicate it between common/bootm.c and scripts/mkimage.c Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move utsrelease.h to include/generated/ instead of include/linuxJean-Christophe PLAGNIOL-VILLARD2010-09-171-1/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* udpate fixdep.c to linux kernel v2.6.36-rc1-168-ge36c886Jean-Christophe PLAGNIOL-VILLARD2010-08-271-25/+30
| | | | | | | as autoconf.h is store in include/generated and not include/linux anymore Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>