aboutsummaryrefslogtreecommitdiffstats
path: root/tools/sed
Commit message (Expand)AuthorAgeFilesLines
* tools/sed: Update to 4.5Daniel Engberg2018-05-051-2/+2
* tools/sed: Update to 4.4Daniel Engberg2017-03-202-28/+3
* tools: reorganize dependencies, fix build after deleting staging dirFelix Fietkau2017-01-091-0/+3
* treewide: clean up download hashesFelix Fietkau2016-12-161-1/+1
* tools/sed: fix compile on musl hostsImre Kaloz2015-05-041-0/+24
* tools: remove static linking supportJo-Philipp Wich2015-02-061-1/+1
* sed: upgrade to version 4.2.2Luka Perkov2013-02-281-3/+3
* build: add the + token to any commands that can pass through the jobserver, f...Felix Fietkau2012-09-231-1/+1
* tools/sed: enable parallel buildsFelix Fietkau2012-09-151-1/+3
* convert remaining tools to $(HOST_STATIC_LINKING) (#12012)Jo-Philipp Wich2012-08-121-1/+1
* sed: disable further SELinux featuresJo-Philipp Wich2012-08-101-0/+2
* sed: unconditionally disable SELinux, NLS and ACL support (#12007)Jo-Philipp Wich2012-08-101-0/+7
* sed: link staticallyJo-Philipp Wich2012-08-101-1/+1
* tools/sed: update to sed-4.2.1 (also tested on FreeBSD/AMD64)Alexandros C. Couloumbis2010-10-052-17/+5
* sed: fix compilation on FreeBSD/AMD64Jo-Philipp Wich2010-08-061-0/+12
* revert r17022, this is not the way to do thisFlorian Fainelli2009-07-261-8/+0
* override sed configuration to work with FreeBSD (#4531)Florian Fainelli2009-07-261-0/+8
* fix download urlRalph Hempel2009-05-311-1/+1
* build system refactoring in preparation for allowing packages to do host-buil...Felix Fietkau2009-02-221-5/+5
* build system cleanup/restructuring as described in http://lists.openwrt.org/p...Felix Fietkau2007-08-071-21/+6
* more shell related fixesFelix Fietkau2006-11-121-3/+2
* finally move buildroot-ng to trunkFelix Fietkau2016-03-201-0/+48
struct mtd_partition **pparts, unsigned long fis_origin) { + unsigned long max_offset = 0; int nrparts = 0; struct fis_image_desc *buf; struct mtd_partition *parts; @@ -209,14 +212,14 @@ static int parse_redboot_partitions(stru } } #endif - parts = kzalloc(sizeof(*parts)*nrparts + nulllen + namelen, GFP_KERNEL); + parts = kzalloc(sizeof(*parts) * (nrparts + 1) + nulllen + namelen + sizeof(BOARD_CONFIG_PART), GFP_KERNEL); if (!parts) { ret = -ENOMEM; goto out; } - nullname = (char *)&parts[nrparts]; + nullname = (char *)&parts[nrparts + 1]; #ifdef CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED if (nulllen > 0) { strcpy(nullname, nullstring); @@ -235,6 +238,8 @@ static int parse_redboot_partitions(stru } #endif for ( ; i<nrparts; i++) { + if(max_offset < buf[i].flash_base + buf[i].size) + max_offset = buf[i].flash_base + buf[i].size; parts[i].size = fl->img->size; parts[i].offset = fl->img->flash_base; parts[i].name = names; @@ -268,6 +273,14 @@ static int parse_redboot_partitions(stru fl = fl->next; kfree(tmp_fl); } + if(master->size - max_offset >= master->erasesize) + { + parts[nrparts].size = master->size - max_offset; + parts[nrparts].offset = max_offset; + parts[nrparts].name = names; + strcpy(names, BOARD_CONFIG_PART); + nrparts++; + } ret = nrparts; *pparts = parts; out: