aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Expand)AuthorAgeFilesLines
* build: log package dump failures to logs to avoid forcing user to write crypt...Felix Fietkau2011-04-061-1/+6
* build: clean up handling of the kernel configFelix Fietkau2011-04-063-22/+53
* add a new package metadata variable MDEPENDS for specifying local menuconfig ...Felix Fietkau2011-04-052-0/+2
* site: set ac_cv_sizeof_off_t=8 to fix autoconf applications using it for dete...Felix Fietkau2011-04-049-9/+9
* make the build system a bit more silent without V=99Felix Fietkau2011-04-041-1/+1
* toplevel: add a warning about .config being out of sync after an updateFelix Fietkau2011-04-041-0/+7
* add kmod-ipt-ledFlorian Fainelli2011-04-031-0/+3
* kernel: add md5sum of kernelHauke Mehrtens2011-04-031-2/+2
* build: reduce the amount of generated make code for the initial prereq scan -...Felix Fietkau2011-04-031-2/+7
* build: use a conditional @ sign before silenced targets instead of .SILENT - ...Felix Fietkau2011-04-031-4/+2
* build: undefine debug helper templates used by subdir.mk if the DEBUG variabl...Felix Fietkau2011-04-031-0/+10
* build: move the SH_FUNC eval to the beginning of the opkg control file build ...Felix Fietkau2011-04-031-2/+2
* build: do not use shell calls to export empty opkg control files, speeds up p...Felix Fietkau2011-04-031-0/+2
* tools/squashfs4: update to version 4.2 (adds support for xz compression)Felix Fietkau2011-04-031-1/+9
* Update 2.6.38 to 2.6.38.2Michael Büsch2011-03-281-2/+2
* global cflags: remove -funit-at-a-time, it is ignored by recent compilers. in...Felix Fietkau2011-03-261-8/+8
* target.mk: don't enable coreutils by default, it does not even exist anymore....Jo-Philipp Wich2011-03-221-4/+0
* add support for md5sum checks for mirrored tarballs of packages with version ...Felix Fietkau2011-03-212-1/+3
* image.mk: only upgrade permissions instead of overwriting, utilize tar -p fla...Jo-Philipp Wich2011-03-211-4/+6
* update to 2.6.32.33 and 2.6.37.4Imre Kaloz2011-03-181-4/+4
* add 2.6.38 md5sumImre Kaloz2011-03-181-0/+3
* build: move the CCACHE_DIR to the build targets so that it doesn't interfere ...Felix Fietkau2011-03-151-0/+1
* download.mk: properly quote download urlsFelix Fietkau2011-03-131-1/+1
* kernel: update to kernel version 2.6.37.3Hauke Mehrtens2011-03-131-2/+2
* kernel: update to kernel version 2.6.34.8Hauke Mehrtens2011-03-131-2/+2
* kernel: update to kernel version 2.6.32.32Hauke Mehrtens2011-03-131-2/+2
* target: Added coreutils to list of default packages. It doesn't build or inst...Daniel Dickinson2011-03-111-0/+4
* Revert "[include] provide mipsel-openwrt-linux-uclibcgnueabi site script, fix...Felix Fietkau2011-03-091-5/+0
* provide mipsel-openwrt-linux-uclibcgnueabi site script, fixes the majority of...Jo-Philipp Wich2011-03-091-0/+5
* site: cache ac_cv_func_malloc_0_nonnull and ac_cv_func_realloc_0_nonnullJo-Philipp Wich2011-03-081-0/+2
* only support EABI on ARM targetsImre Kaloz2011-03-071-2/+0
* hotplug2: replace udevtrigger from the udev-106 source with a much smaller se...Felix Fietkau2011-03-071-1/+1
* deploy .ipk archives with --force-maintainer to ensure that configs are kept ...Jo-Philipp Wich2011-03-061-0/+1
* cmake: Fix ccacheMichael Büsch2011-03-051-2/+16
* add a stamp that can forcibly disable autorebuild for a specific package - us...Felix Fietkau2011-03-031-1/+8
* add config.rpath and link it in autotools.mk if missing, some packages might ...Jo-Philipp Wich2011-02-271-0/+2
* netfilter.mk: put ipv6 conntrack in the right packageFelix Fietkau2011-02-271-2/+1
* netfilter: add missing modules for v6 conntrack (patch from #8940)Felix Fietkau2011-02-261-0/+2
* move nf_{conntrack,nat}_tftp to ipt-nathelper-extra, most people don't need thisFelix Fietkau2011-02-261-4/+4
* kernel: remove imq support, refresh patchesFelix Fietkau2011-02-211-8/+0
* toplevel.mk: remove quotes from the release name, its up to its users to ensu...Jo-Philipp Wich2011-02-191-1/+1
* update to 2.6.32.29Florian Fainelli2011-02-191-2/+2
* update to 2.6.35.11Florian Fainelli2011-02-191-2/+2
* update to kernel 2.6.36.4Florian Fainelli2011-02-191-2/+2
* update to 2.6.37.1Florian Fainelli2011-02-191-2/+2
* add git (git-core) as a prerequisite (#8866)Florian Fainelli2011-02-141-0/+4
* it's time for some attitude adjustment ;)Imre Kaloz2011-02-131-2/+2
* use := instead of = for PKG_CONFIG_PATH to prevent recursionFelix Fietkau2011-02-061-2/+2
* allow packages to override/extend PKG_CONFIG_PATHFelix Fietkau2011-02-061-2/+3
* cmake: Pass VERBOSE=1 to the generated makefile to reveal flags and commands ...Michael Büsch2011-02-051-0/+2
"p">{l} ? 'yes' : 'no')." -c <chipid> : default $arg{c} -b <boardid> : default $arg{b} -s <size_kb> : erase sise flash, default $arg{s} -f <baseaddr> : flash base, default ".sprintf('0x%x', $arg{f})." -x <cfelen> : length of cfe, default ".sprintf('0x%x', $arg{x})." -i : 2=dual image, default $arg{i} -a <loadaddr> : Kernel load address, default ".sprintf('0x%x', $arg{a})." -e <entryaddr>: Kernel entry address, default ".sprintf('0x%x', $arg{e})." -t : Prefix kernel with load,entry,size -p : Add a 'gOtO' partition -v : be more verbose -h : help, version $version EXAMPLES: $prog -k kern -r rootfs " if $arg{h} || !$arg{k} || !$arg{r}; sub Read_Image { open my $fh, $_[0] or die "open $_[0]: $!"; local $/; # Set input to "slurp" mode. my $buf = <$fh>; close $fh; return $buf; } sub Padlen { my $p = $_[0] % $_[1]; return ($p ? $_[1] - $p : 0); } sub Pad { my ($buf, $off, $bs) = @_[0..2]; $buf .= chr(255) x Padlen(length($buf) + $off, $bs); return $buf; } sub bcmImage { my ($k, $f) = @_[0..1]; my $tmp = $arg{x} + 0x100 + $arg{f}; # regular: rootfs+kernel my ($img, $fa, $ka) = ( $f.$k, $tmp, $tmp + length($f) ); # test: kernel+rootfs # my ($img, $fa, $ka) = ( $k.$f, $tmp + length($k), $tmp ); $fa = 0 unless length($f); my $hdr = pack("a4a20a14a6a16a2a10a12a10a12a10a12a10a2a2a74Na16", '6', 'LinuxInside', 'ver. 2.0', $arg{c}, $arg{b}, ($arg{l} ? '0' : '1'), length($img), '0', '0', $fa, length($f), $ka, length($k), ($arg{i}==2 ? '1' : '0'), '', # if 1, the image is INACTIVE; if 0, active '', ~crc32($k, crc32($f)), ''); $hdr .= pack('Na16', ~crc32($hdr), ''); printf "kernel at 0x%x length 0x%x(%u)\n", $ka, length($k), length($k) if $arg{v}; printf "rootfs at 0x%x length 0x%x(%u)\n", $fa, length($f), length($f) if $arg{v}; open(FO, ">$arg{o}"); print FO $hdr; print FO $img; close FO; } # MAIN my $kern = Read_Image $arg{k}; my $root = Read_Image $arg{r}; $kern = pack('NNN', $arg{a}, $arg{e}, length($kern)).$kern if $arg{t}; # specific fixup for the CFE that expects rootfs-kernel order if ($arg{p}) { $kern = Pad($kern, 0x10c, $arg{s} * 1024); my $dummy_root = pack('a4NN', 'gOtO', length($kern)+12, length($root)+Padlen(length($root), $arg{s} * 1024) ); $kern .= $root; $root = $dummy_root; } bcmImage($kern, $root);