summaryrefslogtreecommitdiffstats
path: root/include/filetype.h
Commit message (Collapse)AuthorAgeFilesLines
* filetype: add GPT supportJean-Christophe PLAGNIOL-VILLARD2013-02-161-0/+1
| | | | | | | | GPT need to be check before MBR Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: add is_barebox_headJean-Christophe PLAGNIOL-VILLARD2013-01-221-0/+5
| | | | | | | to detect if it's a barebox for the current running arch Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: add is_barebox_mips_head supportJean-Christophe PLAGNIOL-VILLARD2013-01-221-0/+16
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: Make buf in file_detect_type constSascha Hauer2013-01-201-1/+1
| | | | | | This function has no business changing the buffer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add ext fs detection supportSascha Hauer2012-12-031-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: Pass bufsizeSascha Hauer2012-12-031-1/+3
| | | | | | | | | | Pass the buffer size to the file detection code. This makes sure we do not read past the buffer. This is especially useful for ext filesystem detection as the magic is at byte offset 1080. Also introduce a FILE_TYPE_SAFE_BUFSIZE define which is set to the minimum bufsize the detection code needs to detect all known filetypes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: add shortnamesSascha Hauer2012-10-301-0/+2
| | | | | | | The filetype strings are not really suitable for shell scripts, so add a shortname array of filetypes usable for shell scripts. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/png'Sascha Hauer2012-10-031-0/+2
|\ | | | | | | | | | | Conflicts: common/filetype.c include/filetype.h
| * filetype: add PNG supportJean-Christophe PLAGNIOL-VILLARD2012-09-121-0/+1
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * filetype: add BMP supportJean-Christophe PLAGNIOL-VILLARD2012-09-121-0/+1
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap'Sascha Hauer2012-10-031-0/+16
|\ \ | | | | | | | | | | | | Conflicts: Makefile
| * | xload: get barebox size from barebox_arm_headJan Weitzel2012-09-071-0/+16
| |/ | | | | | | | | | | | | | | | | Add functions to read the barebox_arm_head, check barebox magicword and read out the barebox image size. Create a inital partion of 1Mb to access the barebox image on nand. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / filetype: Improve FAT detectionFranck Jullien2012-09-201-0/+2
|/ | | | | | | | | | | | | | | | We may have some disk with MBR as a first sector. In this case, the current FAT check returns an error. However, the FAT sector exist and the MBR can tell us where it is. This patch add to file_name_detect_type function the ability to find the FAT boot sector on the first sector of the first partition in case it is not on sector 0. It also introduce is_fat_or_mbr to check if a buffer is a FAT boot or MBR sector Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: add fat filesystem supportJean-Christophe PLAGNIOL-VILLARD2012-09-041-0/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* MIPS: bootm: add "MIPS barebox" handlerAntony Pavlov2012-05-111-0/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: add Bourne Shell supportJean-Christophe PLAGNIOL-VILLARD2012-04-181-0/+1
| | | | | | Put it at first as it's the most likely to detect Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* filetype: add Android boot image supportJean-Christophe PLAGNIOL-VILLARD2012-04-121-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: Add oftree detectionSascha Hauer2011-12-151-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add file detection supportSascha Hauer2011-11-291-0/+23
Several filetypes can be autodetected. Barebox could make use of this in several ways: - Add a command to detect filetypes - detect arm zImages and uImages to unify the different boot commands - maybe detect UBI or JFFS2 images to construct parts of the kernel command line - select correct uncompression function based on filetype This patch adds basic support to detect filetypes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>