Skip to content
Snippets Groups Projects
  1. Feb 19, 2014
    • 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
  2. Jan 20, 2014
  3. Dec 13, 2013
  4. Nov 17, 2013
  5. Oct 31, 2013
  6. Aug 19, 2013
  7. May 31, 2013
    • 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
  8. Nov 04, 2012
    • 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
  9. Oct 08, 2012
    • 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
  10. Sep 02, 2012
  11. Aug 09, 2012
  12. Dec 10, 2011
  13. Nov 16, 2011
    • 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
  14. Oct 27, 2011
    • 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
  15. Oct 15, 2011
  16. Sep 09, 2011
    • 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
  17. Nov 17, 2010
    • 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
  18. Aug 21, 2008
    • 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
  19. Aug 14, 2008
  20. Aug 12, 2008
Loading