1. 10 Nov, 2015 1 commit
    • Tom Rini's avatar
      Various Makefiles: Add SPDX-License-Identifier tags · da58dec8
      Tom Rini authored
      After consulting with some of the SPDX team, the conclusion is that
      Makefiles are worth adding SPDX-License-Identifier tags too, and most of
      ours have one.  This adds tags to ones that lack them and converts a few
      that had full (or in one case, very partial) license blobs into the
      equivalent tag.
      
      Cc: Kate Stewart <kstewart@linuxfoundation.org>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      da58dec8
  2. 25 Aug, 2014 1 commit
    • Heiko Schocher's avatar
      lib, linux: move linux specific defines to linux/compat.h · 0c06db59
      Heiko Schocher authored
      - move linux specific defines from usb and video code
        into linux/compat.h
      - move common linux specific defines from include/ubi_uboot.h
        to linux/compat.h
      - add for new mtd/ubi/ubifs sync new needed linux specific
        defines to linux/compat.h
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Anatolij Gustschin <agust@denx.de>
      [trini: Add spin_lock_irqsave/spin_unlock_irqrestore dummies from
      usb/lin_gadet_compat.h]
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      0c06db59
  3. 18 Jul, 2014 2 commits
  4. 04 Mar, 2014 1 commit
    • Simon Glass's avatar
      yaffs: Remove private list implementation · 1b451ecc
      Simon Glass authored
      U-Boot already has a list implementation, and files which include both
      that and the yaffs implementation will get errors:
      
      In file included from ydirectenv.h:80:0,
                       from yportenv.h:81,
                       from yaffs_guts.h:19,
                       from yaffs_allocator.h:19,
                       from yaffs_allocator.c:14:
      yaffs_list.h:32:8: error: redefinition of ‘struct list_head’
       struct list_head {
              ^
      
      Remove the yaffs implementation.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      1b451ecc
  5. 19 Feb, 2014 1 commit
    • Masahiro Yamada's avatar
      kbuild: use Linux Kernel build scripts · 6825a95b
      Masahiro Yamada authored
      Now we are ready to switch over to real Kbuild.
      
      This commit disables temporary scripts:
        scripts/{Makefile.build.tmp, Makefile.host.tmp}
      and enables real Kbuild scripts:
        scripts/{Makefile.build,Makefile.host,Makefile.lib}.
      
      This switch is triggered by the line in scripts/Kbuild.include
        -build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
        +build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
      
      We need to adjust some build scripts for U-Boot.
      But smaller amount of modification is preferable.
      
      Additionally, we need to fix compiler flags which are
      locally added or removed.
      
      In Kbuild, it is not allowed to change CFLAGS locally.
      Instead, ccflags-y, asflags-y, cppflags-y,
      CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
      are prepared for that purpose.
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: default avatarGerhard Sittig <gsi@denx.de>
      6825a95b
  6. 20 Jan, 2014 1 commit
  7. 13 Dec, 2013 1 commit
  8. 17 Nov, 2013 1 commit
  9. 31 Oct, 2013 1 commit
  10. 19 Aug, 2013 1 commit
  11. 31 May, 2013 1 commit
    • Sergey Lapin's avatar
      mtd: resync with Linux-3.7.1 · dfe64e2c
      Sergey Lapin authored
      This patch is essentially an update of u-boot MTD subsystem to
      the state of Linux-3.7.1 with exclusion of some bits:
      
      - the update is concentrated on NAND, no onenand or CFI/NOR/SPI
      flashes interfaces are updated EXCEPT for API changes.
      
      - new large NAND chips support is there, though some updates
      have got in Linux-3.8.-rc1, (which will follow on top of this patch).
      
      To produce this update I used tag v3.7.1 of linux-stable repository.
      
      The update was made using application of relevant patches,
      with changes relevant to U-Boot-only stuff sticked together
      to keep bisectability. Then all changes were grouped together
      to this patch.
      Signed-off-by: default avatarSergey Lapin <slapin@ossfans.org>
      [scottwood@freescale.com: some eccstrength and build fixes]
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      dfe64e2c
  12. 04 Nov, 2012 1 commit
    • Kim Phillips's avatar
      include/linux/byteorder: import latest endian definitions from linux · eef1cf2d
      Kim Phillips authored
      u-boot's byteorder headers did not contain endianness attributions
      for use with sparse, causing a lot of false positives.  Import the
      kernel's latest definitions, and enable them by including compiler.h
      and types.h.  They come with 'const' added for some swab functions, so
      fix those up, too:
      
      include/linux/byteorder/big_endian.h:46:2: warning: passing argument 1 of '__swab64p' discards 'const' qualifier from pointer target type [enabled by default]
      
      Also, note: u-boot's historic __BYTE_ORDER definition has been
      preserved (for the time being at least).
      
      We also remove ad-hoc barrier() definitions, since we're including
      compiler.h in files that hadn't in the past:
      
      macb.c:54:0: warning: "barrier" redefined [enabled by default]
      
      In addition, including compiler.h in byteorder changes the 'noinline'
      definition to expand to __attribute__((noinline)).  This fixes
      arch/powerpc/lib/bootm.c:
      
      bootm.c:329:16: error: attribute '__attribute__': unknown attribute
      bootm.c:329:16: error: expected ')' before '__attribute__'
      bootm.c:329:25: error: expected identifier or '(' before ')' token
      
      powerpc sparse builds yield:
      
      include/common.h:356:22: error: marked inline, but without a definition
      
      the unknown-reason inlining without a definition is considered obsolete
      given it was part of the 2002 initial commit, and no arm version was
      'fixed.'
      
      also fixed:
      ydirectenv.h:60:0: warning: "inline" redefined [enabled by default]
      
      and:
      
      Configuring for devconcenter - Board: intip, Options: DEVCONCENTER
      make[1]: *** [4xx_ibm_ddr2_autocalib.o] Error 1
      make: *** [arch/powerpc/cpu/ppc4xx/libppc4xx.o] Error 2
      powerpc-fsl-linux-size: './u-boot': No such file
      4xx_ibm_ddr2_autocalib.c: In function 'DQS_autocalibration':
      include/asm/ppc4xx-sdram.h:1407:13: sorry, unimplemented: inlining failed in call to 'ppc4xx_ibm_ddr2_register_dump': function body not available
      4xx_ibm_ddr2_autocalib.c:1243:32: sorry, unimplemented: called from here
      
      and:
      
      In file included from crc32.c:50:0:
      crc32table.h:4:1: warning: implicit declaration of function '___constant_swab32' [-Wimplicit-function-declaration]
      crc32table.h:4:1: error: initializer element is not constant
      crc32table.h:4:1: error: (near initialization for 'crc32table_le[0]')
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      [trini: Remove '#endif' in include/common.h around setenv portion]
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      eef1cf2d
  13. 08 Oct, 2012 1 commit
    • Anatolij Gustschin's avatar
      yaffs2: Fix GCC 4.6 compile warnings · 8cc64baf
      Anatolij Gustschin authored
      Fix:
      yaffs_guts.c: In function 'yaffs_check_chunk_erased':
      yaffs_guts.c:324:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c: In function 'yaffs_verify_chunk_written':
      yaffs_guts.c:352:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c: In function 'yaffs_grab_chunk_cache':
      yaffs_guts.c:1488:6: warning: variable 'pushout' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c: In function 'yaffs_check_obj_details_loaded':
      yaffs_guts.c:3180:6: warning: variable 'alloc_failed' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c:3179:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c: In function 'yaffs_update_oh':
      yaffs_guts.c:3288:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_guts.c: In function 'yaffs_get_obj_name':
      yaffs_guts.c:4447:7: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_summary.c: In function 'yaffs_summary_read':
      yaffs_summary.c:194:6: warning: variable 'sum_tags_bytes' set but not
      used [-Wunused-but-set-variable]
      yaffs_verify.c: In function 'yaffs_verify_file':
      yaffs_verify.c:227:6: warning: variable 'actual_depth' set but not used
      [-Wunused-but-set-variable]
      yaffs_yaffs1.c: In function 'yaffs1_scan':
      yaffs_yaffs1.c:26:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_yaffs2.c: In function 'yaffs2_scan_chunk':
      yaffs_yaffs2.c:949:6: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      yaffs_yaffs2.c: In function 'yaffs2_scan_backwards':
      yaffs_yaffs2.c:1352:6: warning: variable 'deleted' set but not used
      [-Wunused-but-set-variable]
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      Cc: Charles Manning <cdhmanning@gmail.com>
      Tested-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      8cc64baf
  14. 02 Sep, 2012 1 commit
  15. 09 Aug, 2012 1 commit
  16. 10 Dec, 2011 1 commit
  17. 16 Nov, 2011 2 commits
    • Simon Glass's avatar
      Fix warnings in yaffs · 986bb0e6
      Simon Glass authored
      Sorry if this is already fixed somewhere - I could not find it.
      
      This fixes the warnings show below.
      
      yaffs_tagscompat.c: In function 'yaffs_TagsCompatabilityReadChunkWithTagsFromNAND':
      yaffs_tagscompat.c:151: warning: dereferencing pointer 'tu' does break strict-aliasing rules
      yaffs_tagscompat.c:150: warning: dereferencing pointer 'tu' does break strict-aliasing rules
      yaffs_tagscompat.c:149: warning: dereferencing pointer 'tu' does break strict-aliasing rules
      yaffs_tagscompat.c:148: warning: dereferencing pointer 'tu' does break strict-aliasing rules
      yaffs_tagscompat.c:147: warning: dereferencing pointer 'tu' does break strict-aliasing rules
      yaffs_tagscompat.c:146: warning: dereferencing pointer 'tu' does break strict-aliasing rules
      yaffs_tagscompat.c:145: warning: dereferencing pointer 'tu' does break strict-aliasing rules
      yaffs_tagscompat.c:144: warning: dereferencing pointer 'tu' does break strict-aliasing rules
      yaffs_tagscompat.c:141: note: initialized from here
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      986bb0e6
    • Anatolij Gustschin's avatar
      fs/yaffs2/yaffs_guts.c: Fix some GCC 4.6 warnings · 360ab450
      Anatolij Gustschin authored
      Fix:
      yaffs_guts.c: In function 'yaffs_CheckChunkErased':
      yaffs_guts.c:854:6: warning: variable 'result' set but not used
      yaffs_guts.c: In function 'yaffs_UpdateObjectHeader':
      yaffs_guts.c:3463:6: warning: variable 'result' set but not used
      yaffs_guts.c: In function 'yaffs_GrabChunkCache':
      yaffs_guts.c:3774:6: warning: variable 'pushout' set but not used
      yaffs_guts.c: In function 'yaffs_Scan':
      yaffs_guts.c:5237:6: warning: variable 'result' set but not used
      yaffs_guts.c: In function 'yaffs_CheckObjectDetailsLoaded':
      yaffs_guts.c:5748:6: warning: variable 'alloc_failed' set but not used
      yaffs_guts.c:5747:6: warning: variable 'result' set but not used
      yaffs_guts.c: In function 'yaffs_ScanBackwards':
      yaffs_guts.c:5808:6: warning: variable 'deleted' set but not used
      yaffs_guts.c:5806:6: warning: variable 'result' set but not used
      yaffs_guts.c: In function 'yaffs_GetObjectName':
      yaffs_guts.c:6657:7: warning: variable 'result' set but not used
      [-Wunused-but-set-variable]
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      360ab450
  18. 27 Oct, 2011 2 commits
    • Marek Vasut's avatar
      GCC4.6: Squash warnings in yaffs_guts.c · 4754c823
      Marek Vasut authored
      yaffs_guts.c: In function 'yaffs_ReadDataFromFile':
      yaffs_guts.c:4461:8: warning: 'chunk' may be used uninitialized in this function
      yaffs_guts.c:4462:8: warning: 'start' may be used uninitialized in this function
      yaffs_guts.c: In function 'yaffs_WriteDataToFile':
      yaffs_guts.c:4581:8: warning: 'chunk' may be used uninitialized in this function
      yaffs_guts.c:4582:8: warning: 'start' may be used uninitialized in this function
      yaffs_guts.c: In function 'yaffs_ResizeFile':
      yaffs_guts.c:4816:8: warning: 'newSizeOfPartialChunk' may be used uninitialized
      in this function
      yaffs_guts.c:4817:8: warning: 'newFullChunks' may be used uninitialized in this
      function
      Signed-off-by: default avatarMarek Vasut <marek.vasut@gmail.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: William Juul <william.juul@tandberg.com>
      4754c823
    • Marek Vasut's avatar
      GCC4.6: Drop dead code from yaffs_guts.c · 4b41478c
      Marek Vasut authored
      Drop yaffs_DeleteWorker():
      yaffs_guts.c:1556:12: warning: 'yaffs_DeleteWorker' defined but not used
      
      Drop yaffs_VerifyTnodeWorker():
      yaffs_guts.c:600:12: warning: 'yaffs_VerifyTnodeWorker' defined but not used
      Signed-off-by: default avatarMarek Vasut <marek.vasut@gmail.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Mike Frysinger <vapier@gentoo.org>
      4b41478c
  19. 15 Oct, 2011 1 commit
  20. 09 Sep, 2011 5 commits
    • Wolfgang Denk's avatar
      YAFFS2: fs/yaffs2/yaffs_guts.c - fix build warnings · 068d6f9a
      Wolfgang Denk authored
      Fix these:
      yaffs_guts.c: In function 'yaffs_ReadDataFromFile':
      yaffs_guts.c:4622: warning: pointer targets in passing argument 3 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c:4622: warning: pointer targets in passing argument 4 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c: In function 'yaffs_WriteDataToFile':
      yaffs_guts.c:4745: warning: pointer targets in passing argument 3 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c:4745: warning: pointer targets in passing argument 4 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c: In function 'yaffs_ResizeFile':
      yaffs_guts.c:4968: warning: pointer targets in passing argument 3 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c:4968: warning: pointer targets in passing argument 4 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c: In function 'yaffs_GutsInitialise':
      yaffs_guts.c:7235: warning: assignment from incompatible pointer type
      yaffs_guts.c: In function 'yaffs_CreateNewObject':
      yaffs_guts.c:2143: warning: 'tn' may be used uninitialized in this function
      yaffs_guts.c: In function 'yaffs_MknodObject':
      yaffs_guts.c:2258: warning: 'str' may be used uninitialized in this function
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      068d6f9a
    • Wolfgang Denk's avatar
      YAFFS2: fs/yaffs2/yaffs_guts.c - fix build warnings · 3da04743
      Wolfgang Denk authored
      Fix these:
      yaffs_guts.c: At top level:
      yaffs_guts.c:400: warning: 'yaffs_SkipFullVerification' defined but not used
      
      Testing shows no changes of the image sizes.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      3da04743
    • Wolfgang Denk's avatar
      YAFFS2: fs/yaffs2/yaffs_nand.[hc] - fix build warnings · fa00e032
      Wolfgang Denk authored
      Fix these:
      yaffs_guts.c: In function 'yaffs_Scan':
      yaffs_guts.c:5436: warning: pointer targets in passing argument 4 of 'yaffs_QueryInitialBlockState' differ in signedness
      yaffs_guts.c: In function 'yaffs_ScanBackwards':
      yaffs_guts.c:6017: warning: pointer targets in passing argument 4 of 'yaffs_QueryInitialBlockState' differ in signedness
      yaffs_nand.c: In function 'yaffs_QueryInitialBlockState':
      yaffs_nand.c:109: warning: pointer targets in passing argument 4 of 'dev->queryNANDBlock' differ in signedness
      yaffs_nand.c:113: warning: pointer targets in passing argument 4 of 'yaffs_TagsCompatabilityQueryNANDBlock' differ in signedness
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      fa00e032
    • Wolfgang Denk's avatar
      YAFFS2: fs/yaffs2/Makefile - fix build warnings · 9d0265e9
      Wolfgang Denk authored
      Drop the "-DNO_Y_INLINE" setting to fix these:
      yaffs_guts.h:806: warning: 'yaffs_GetBlockInfo' defined but not used
      
      Impact on image size is negligible - for the VCMA9 board the text
      segment size grew from 496353 to 496357 bytes (i. e. 0.0008%);
      total image size even remained constant.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      9d0265e9
    • Wolfgang Denk's avatar
      YAFFS2: fs/yaffs2/yaffscfg.c - fix build warnings · 6ac360c4
      Wolfgang Denk authored
      Fix these:
      yaffscfg.c: In function 'cmd_yaffs_mread_file':
      yaffscfg.c:316: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'char *'
      yaffscfg.c: In function 'cmd_yaffs_ls': yaffscfg.c:371: warning: format '%7d' expects type 'int', but argument 3 has type 'off_t'
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      6ac360c4
  21. 17 Nov, 2010 1 commit
    • Sebastien Carlier's avatar
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier authored
      Before this commit, weak symbols were not overridden by non-weak symbols
      found in archive libraries when linking with recent versions of
      binutils.  As stated in the System V ABI, "the link editor does not
      extract archive members to resolve undefined weak symbols".
      
      This commit changes all Makefiles to use partial linking (ld -r) instead
      of creating library archives, which forces all symbols to participate in
      linking, allowing non-weak symbols to override weak symbols as intended.
      This approach is also used by Linux, from which the gmake function
      cmd_link_o_target (defined in config.mk and used in all Makefiles) is
      inspired.
      
      The name of each former library archive is preserved except for
      extensions which change from ".a" to ".o".  This commit updates
      references accordingly where needed, in particular in some linker
      scripts.
      
      This commit reveals board configurations that exclude some features but
      include 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: default avatarSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  22. 21 Aug, 2008 1 commit
    • Remy Bohmer's avatar
      Make the YAFFS filesystem work · 0bb86d82
      Remy Bohmer authored
      Recently the YAFFS filesystem support has been added to U-boot.
      However, just enabling CONFIG_YAFFS2 is not enough to get it working.
      
      ymount will generate an exception (when dereferencing mtd->readoob()), because
      the genericDevice is a null pointer. Further, a lot of logging is produced
      while using YAFFS fs, so logging should also be disabled.
      Both issues are solved by this patch.
      
      With this patch and CONFIG_YAFFS2 enabled, I get a readable filesystem
      in U-boot, as well as in Linux.
      
      Tested on a Atmel AT91SAM9261EK board.
      Signed-off-by: default avatarRemy Bohmer <linux@bohmer.net>
      Acked-by: default avatarWilliam Juul <william.juul@tandberg.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      0bb86d82
  23. 14 Aug, 2008 1 commit
  24. 12 Aug, 2008 5 commits