Switch from archive libraries to partial linkingBefore this commit, weak symbols were not overridden by non-weak symbolsfound in archive libraries when linking with recent versions ofbinutils. A
Switch from archive libraries to partial linkingBefore this commit, weak symbols were not overridden by non-weak symbolsfound in archive libraries when linking with recent versions ofbinutils. As stated in the System V ABI, "the link editor does notextract archive members to resolve undefined weak symbols".This commit changes all Makefiles to use partial linking (ld -r) insteadof creating library archives, which forces all symbols to participate inlinking, allowing non-weak symbols to override weak symbols as intended.This approach is also used by Linux, from which the gmake functioncmd_link_o_target (defined in config.mk and used in all Makefiles) isinspired.The name of each former library archive is preserved except forextensions which change from ".a" to ".o". This commit updatesreferences accordingly where needed, in particular in some linkerscripts.This commit reveals board configurations that exclude some features butinclude source files that depend these disabled features in the build,resulting in undefined symbols. Known such cases include:- disabling CMD_NET but not CMD_NFS;- enabling CONFIG_OF_LIBFDT but not CONFIG_QE.Signed-off-by: Sebastien Carlier <sebastien.carlier@gmail.com>
show more ...
Replace CONFIG_RELOC_FIXUP_WORKS by CONFIG_NEEDS_MANUAL_RELOCBy now, the majority of architectures have working relocationsupport, so the few remaining architectures have become exceptions.To mak
Replace CONFIG_RELOC_FIXUP_WORKS by CONFIG_NEEDS_MANUAL_RELOCBy now, the majority of architectures have working relocationsupport, so the few remaining architectures have become exceptions.To make this more obvious, we make working relocation now the defaultcase, and flag the remaining cases with CONFIG_NEEDS_MANUAL_RELOC.Signed-off-by: Wolfgang Denk <wd@denx.de>Tested-by: Heiko Schocher <hs@denx.de>Tested-by: Reinhard Meyer <u-boot@emk-elektronik.de>
disk/part.c: fix relocation fixupPortions of this work were supported by funding fromthe CE Linux Forum.Signed-off-by: Heiko Schocher <hs@denx.de>
mmc: print out partition tableSigned-off-by: Lei Wen <leiwen@marvell.com>
disk/part.c: 'usb storage' avoiding overflow when output capacityBefore: Marvell>> usb storage Device 0: Vendor: StoreJet Rev: Prod: Transcend Type: Hard Disk
disk/part.c: 'usb storage' avoiding overflow when output capacityBefore: Marvell>> usb storage Device 0: Vendor: StoreJet Rev: Prod: Transcend Type: Hard Disk Capacity: 28759.9 MB = 28.0 GB (488397168 x 512)After: Marvell>> usb storage Device 0: Vendor: StoreJet Rev: Prod: Transcend Type: Hard Disk Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
FAT32: fix support for superfloppy-format (PBR)"Superfloppy" format (in U-Boot called PBR) did not work for FAT32 asthe file system type string is at a different location. Add supportfor FAT32.
FAT32: fix support for superfloppy-format (PBR)"Superfloppy" format (in U-Boot called PBR) did not work for FAT32 asthe file system type string is at a different location. Add supportfor FAT32.Signed-off-by: Wolfgang Denk <wd@denx.de>
common: delete CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOULThere is more and more usage of printing 64bit values,so enable this feature generally, and delete theCONFIG_SYS_64BIT_VSPRINT
common: delete CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOULThere is more and more usage of printing 64bit values,so enable this feature generally, and delete theCONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOULdefines.Signed-off-by: Heiko Schocher <hs@denx.de>
part_dos: check status flags of partitionsOnly read partitions which have 0x00 or 0x80 set in their status field.All others are invalid.Signed-off-by: Daniel Mack <daniel@caiaq.de>
Conditionally perform common relocation fixupsAdd #ifdefs where necessary to not perform relocation fixups. Thisallows boards/architectures which support relocation to trim a decentchunk of code
Conditionally perform common relocation fixupsAdd #ifdefs where necessary to not perform relocation fixups. Thisallows boards/architectures which support relocation to trim a decentchunk of code.Note that this patch doesn't add #ifdefs to architecture-specific codewhich does not support relocation.Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Partition support: remove newline from partition nameRemove bogus newline character that got added to the .name field ofthe disk_partition_t structure.Signed-off-by: Wolfgang Denk <wd@denx.de>
IDE: bail out of dev_print() for unknown device typesCommit 574b319512 introduced a subtle bug by mixing a list of testsfor "dev_desc->type" and "dev_desc->if_type" into one switch(), whichthen m
IDE: bail out of dev_print() for unknown device typesCommit 574b319512 introduced a subtle bug by mixing a list of testsfor "dev_desc->type" and "dev_desc->if_type" into one switch(), whichthen mostly did not work because "dev_desc->type" cannot take any"IF_*" type values. A later fix in commit 8ec6e332ea changed theswitch() into testing "dev_desc->if_type", but at this point theinitial test for unknown device types was completely lost, whichresulted in output like that for IDE ports without device attached: Device 1: Model: Firm: Ser#: Type: # 1F # Capacity: not availableThis patch re-introduces the missing test for unknown device types.Signed-off-by: Wolfgang Denk <wd@denx.de>Cc: Stefan Roese <sr@denx.de>Cc: Detlev Zundel <dzu@denx.de>Tested-by: Stefan Roese <sr@denx.de>
mflash: Initial mflash supportMflash is fusion memory device mainly targeted consumer eletronic andmobile phone.Internally, it have nand flash and other hardware logics and supportssome differen
mflash: Initial mflash supportMflash is fusion memory device mainly targeted consumer eletronic andmobile phone.Internally, it have nand flash and other hardware logics and supportssome different operation (ATA, IO, XIP) modes.IO mode is custom mode for the host that doesn't have IDE interface.(Many mobile targeted SoC doesn't have IDE bus)This driver support mflash IO mode.Followings are brief descriptions about IO mode.1. IO mode based on ATA protocol and uses some custom command. (read confirm, write confirm)2. IO mode uses SRAM bus interface.Signed-off-by: unsik Kim <donari75@gmail.com>
vsprintf: pull updates from Linux kernelThis brings in support for the %p modifier which allows us to easily printout things like ip addresses, mac addresses, and pointers.It also converts the r
vsprintf: pull updates from Linux kernelThis brings in support for the %p modifier which allows us to easily printout things like ip addresses, mac addresses, and pointers.It also converts the rarely used 'q' length modifier to the common 'L'modifier when dealing with quad types.While this new code is a bit larger (~1k .text), most of it should be madeup by converting the existing ip/mac address code to use format modifiers.Signed-off-by: Mike Frysinger <vapier@gentoo.org>
disk: convert part_* files to COBJ-$(CONFIG_XXX) styleMove the CONFIG_XXX out of the part_XXX.c file and into Makefile toavoid pointless compiles.Signed-off-by: Mike Frysinger <vapier@gentoo.org>
part_efi: Fix partition size calculation due to inclusive ending LBA.The ending LBA is inclusive. Hence, the partition size should be((ending-LBA + 1) - starting-LBA) to get the proper partition s
part_efi: Fix partition size calculation due to inclusive ending LBA.The ending LBA is inclusive. Hence, the partition size should be((ending-LBA + 1) - starting-LBA) to get the proper partition size.This is confirmed against the results from the parted tool.(e.g. use parted /dev/sda -s unit S print) and observe the size.Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Coding Style cleanup, update CHANGELOGSigned-off-by: Wolfgang Denk <wd@denx.de>
rename CFG_ macros to CONFIG_SYSSigned-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Add support for CONFIG_EFI_PARTITION (GUID Partition Table)The GUID (Globally Unique Identifier) Partition Table (GPT) is a partof EFI. See http://en.wikipedia.org/wiki/GUID_Partition_TableBased
Add support for CONFIG_EFI_PARTITION (GUID Partition Table)The GUID (Globally Unique Identifier) Partition Table (GPT) is a partof EFI. See http://en.wikipedia.org/wiki/GUID_Partition_TableBased on linux/fs/partitions/efi.[ch]Signed-off-by: Richard Retanubun <RichardRetanubun@RugggedCom.com>
Add missing device types to dev_print() in part.cSigned-off-by: Remy Bohmer <linux@bohmer.net>
Fix dev_print when called from usb_stor_info (usb storage command)Fix output of the usb storage command. It was printing "Device 0: notavailable" because IF_TYPE_USB was not included into the swit
Fix dev_print when called from usb_stor_info (usb storage command)Fix output of the usb storage command. It was printing "Device 0: notavailable" because IF_TYPE_USB was not included into the switchstatement.Signed-off-by: Nicolas Lebedenco <nicolas.lebedenco@tasksistemas.com.br>
Fix incorrect switch for IF_TYPE in part.cUse correct field in block_dev_desc_t when writing interface type indev_print. Error introduced in 574b3195.Also added fix from Martin KrauseSigned-of
Fix incorrect switch for IF_TYPE in part.cUse correct field in block_dev_desc_t when writing interface type indev_print. Error introduced in 574b3195.Also added fix from Martin KrauseSigned-off-by: Tor Krill <tor@excito.com>
Big white-space cleanup.This commit gets rid of a huge amount of silly white-space issues.Especially, all sequences of SPACEs followed by TAB characters getremoved (unless they appear in print st
Big white-space cleanup.This commit gets rid of a huge amount of silly white-space issues.Especially, all sequences of SPACEs followed by TAB characters getremoved (unless they appear in print statements).Also remove all embedded "vim:" and "vi:" statements which hideindentation problems.Signed-off-by: Wolfgang Denk <wd@denx.de>
cosmetic: Adjust coding style for switch statements to be consistentSigned-off-by: Detlev Zundel <dzu@denx.de>
Fix disk type output in disk/part.cSigned-off-by: Detlev Zundel <dzu@denx.de>
ata: add the support for SATA framework- add the SATA framework- add the SATA command lineSigned-off-by: Dave Liu <daveliu@freescale.com>
12345678910>>...12