summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-0313-50/+1
|\ | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-1713-50/+1
| | | | | | | | | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap'Sascha Hauer2012-10-033-1/+143
|\ \ | | | | | | | | | | | | Conflicts: Makefile
| * | scripts: add tool to create image for SPI boot on AM35xxJan Luebbe2012-10-023-1/+143
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Booting from SPI on an AM35xx (and possibly other TI SOCs) requires a special format: - 32 bit image size in big-endian - 32 bit load address in big-endian - binary image converted from little- to big-endian The mk-am35xx-spi-image tool converts barebox.bin to this format. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2012-10-031-1/+5
|\ \
| * | genenv: Allow to also specify files for the environment instead of only ↵Jean-Christophe PLAGNIOL-VILLARD2012-09-111-1/+5
| |/ | | | | | | | | | | | | | | | | directories we may specify file in the defconfig Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | add gitignore filevicencb@gmail.com2012-10-021-0/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | kconfig: remove autogenerated fileSascha Hauer2012-09-281-2420/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Make: Fix if_changed when command contains backslashesSascha Hauer2012-09-161-1/+1
|/ | | | | | | | | | | | | | | | | | | The call if_changed mechanism does not work when the command contains backslashes. This basically is an issue with lzo and bzip2 compressed kernels. The compressed binaries do not contain the uncompressed image size, so these use size_append to append the size. This results in backslashes in the executed command. With this if_changed always detects a change in the command and rebuilds the compressed image even if nothing has changed. Fix this by escaping backslashes in make-cmd This was worked out together with Jan Lübbe. The same patch has recently been accepted to the kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
* Merge branch 'for-next/pbl'Sascha Hauer2012-09-053-4/+66
|\
| * Makefile.lib: add disasm and ln commandsSascha Hauer2012-08-121-0/+6
| | | | | | | | | | | | | | | | | | | | disasm: For generating an disasssembly of an ELF file ln: For creating a softlink Use the disasm command for generating barebox.S Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * kbuild: allow to have custom cppflags for pblJean-Christophe PLAGNIOL-VILLARD2012-08-031-2/+2
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * kbuild: add pre-bootloader (pbl) targetJean-Christophe PLAGNIOL-VILLARD2012-08-032-3/+59
| | | | | | | | | | | | | | | | | | | | This will allow to link compiled object to the built-in-pbl.o across the source tree that will be finally link to the pbl. Now we compile the source %.c in pbl-%.o and provide -D__PBL__ so we can known in the source when it's compile for barebox or the pbl. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * Makefile.clean: include Makefiles againSascha Hauer2012-08-031-1/+1
| | | | | | | | | | | | | | | | This makes it possible to add architecure specific clean targets again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | recursive_action: add ACTION_FOLLOWLINKS supportJean-Christophe PLAGNIOL-VILLARD2012-09-051-1/+1
|/ | | | | | this is need to support symlink in envfs Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'for-next/mkublheader'Sascha Hauer2012-08-013-2/+103
|\
| * scripts/mkublheader: add program to produce an UBL image headerJan Luebbe2012-07-043-2/+103
| | | | | | | | | | | | | | | | This image header is used for booting from SPI using the TI User Boot Loader (UBL). Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/compressed-prepare'Sascha Hauer2012-08-011-1/+24
|\ \
| * | kbuild: Init all relevant variables used in kbuild filesJean-Christophe PLAGNIOL-VILLARD2012-07-301-1/+24
| |/ | | | | | | | | | | | | import from linux 3.5-rc5 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / scripts/checkpatch.pl: reset rpt_cleaners warningsTeresa Gámez2012-07-251-0/+1
|/ | | | | | | | | | | | | | | When running checkpatch against multiple patches and one of them has a whitespace issue, all following patches will contain the same note, even if they are ok. This patch is taken from the linux kernel: scripts/checkpatch.pl: reset rpt_cleaners warnings b0781216e7bff68aca2fbcd275b4db7531d1e22f Written by Mike Frysinger <vapier@gentoo.org> Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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>