summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/omap'Sascha Hauer2013-02-042-28/+44
|\
| * Merge branch 'pu/omap' into for-next/omapSascha Hauer2013-01-291-0/+11
| |\
| * | OMAP4_USB: more stable communicationsVicente Bergas2013-01-172-28/+44
| | | | | | | | | | | | | | | Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | scripts: remove now unnecessary includeSascha Hauer2013-01-201-1/+0
| |/ |/| | | | | | | | | | | include/environment.h is no longer necessary to build scripts/bareboxenv, so remove its inclusion. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Makefile: move cmd_check_file_size to Makefile.libJean-Christophe PLAGNIOL-VILLARD2013-01-201-0/+11
|/ | | | | | | so we can use to check pbl Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* let kbuild build foo/bar.o correctly张忠山2012-12-081-4/+4
| | | | | | | | | | | When obj-y has foo/bar.o, kbuild can't generate foo/bar.o according foo/bar.c. Fix this this patch based on linux kernel commit 521cb40b0c44418a4fd36dc633f575813d59a43d Signed-off-by: 张忠山 <zzs213@126.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2012-12-071-0/+265
|\
| * Makefile: move ctags and cscope support to a shell scriptAntony Pavlov2012-12-031-0/+265
| | | | | | | | | | | | | | The scripts/tags.sh file copied from linux-3.6. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | loadenv: allow more fine grained environment loadingSascha Hauer2012-11-291-1/+1
|/ | | | | | | | | | | This implements two new options for the loadenv command: -s: removes (scrubs) old directory contents to be able to create a fresh environment from for example /dev/defaultenv -n: no overwrite. Do not overwrite existing files. This allows to keep parts of the old environment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bareboxenv.c: simple grammatical fixRobert P. J. Day2012-11-191-2/+2
| | | | | Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap4: add support for booting cpu from usbVicente2012-11-165-0/+878
| | | | | Signed-off-by: Vicente <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap spi image: print error to stderrSascha Hauer2012-10-261-1/+1
| | | | | | | Since the utility outputs the image on stdout we have to print the error messages to stderr in order to see them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap spi image: relax size constrainsSascha Hauer2012-10-261-5/+3
| | | | | | | | The omap spi utility requires the image size to be a multiple of four bytes. This seems unnecessary, we can just pad with a few bytes to get the required alignment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pbl: Add missing FORCESascha Hauer2012-10-261-2/+2
| | | | | | Otherwise the pbl files do not get rebuilt when the CFLAGS change. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/defaultenv-deps'Sascha Hauer2012-10-032-10/+22
|\
| * environment generation: Fix dependenciesSascha Hauer2012-09-281-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dependencies for generating the environment do not work properly: - If files are removed from the defaultenv, a subsequent make will not update the default environment. - If CONFIG_DEFAULT_ENVIRONMENT_PATH changes, the default environment also will not be regenerated. This patch fixes this by introducing a cmd_env which has the content of $(ENV_FILES) in the command so that the if_changed mechanism recognizes a change when $(ENV_FILE) changes. This also results in a nice " ENV " string in the build process. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * scripts/bareboxenv: Only print information if -v is givenSascha Hauer2012-09-281-4/+11
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | 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>