1. 11 3月, 2014 4 次提交
  2. 10 3月, 2014 1 次提交
    • M
      m68k: Remove M5271EVB and idmr board support · ba650e9b
      Masahiro Yamada 提交于
      CONFIG_SYS_HZ must be always 1000, but M5271EVB.h defines it
      as 1000000 and idmr.h defines it as (50000000 / 64).
      
      When compiling these two boards, a warning message is displayed:
      
        time.c:14:2: warning: #warning "CONFIG_SYS_HZ must be 1000
        and should not be defined by platforms" [-Wcpp]
      
      There are no board maintainers for them so this commit just
      deletes them.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Jason Jin <Jason.jin@freescale.com>
      ba650e9b
  3. 08 3月, 2014 14 次提交
  4. 07 3月, 2014 17 次提交
    • M
      kbuild: move "checkgcc4" to PowerPC archprepare · d57d60cf
      Masahiro Yamada 提交于
      "checkgcc4" is used only for PowerPC.
      Move it to arch/powerpc/config.mk.
      
      To make sure gcc is new enough before beginning build,
      run "checkgcc4" during "archprepare".
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      d57d60cf
    • M
      kbuild: move "checkthumb" to ARM archprepare · 388b2e52
      Masahiro Yamada 提交于
      "checkthumb" makes sense only for ARM architecture.
      Move it to arch/arm/config.mk.
      
      To make sure gcc supports THUMB mode before beginning build,
      run "checkthumb" during "archprepare".
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      388b2e52
    • M
      powerpc: mpc8260: consolidate CONFIG_MPC8260 and CONFIG_8260 · 58dac327
      Masahiro Yamada 提交于
      Before this commit, CONFIG_MPC8260 and CONFIG_8260
      were used mixed-up.
      
      All boards with mpc8260 cpu defined both of them:
        - CONFIG_MPC8260 was defined in board config headers
            and include/common.h
        - CONFIG_8260 was defined arch/powerpc/cpu/mpc8260/config.mk
      
      We do not need to have both of them.
      This commit keeps only CONFIG_MPC8260.
      
      This commit does:
       - Delete CONFIG_8260 and CONFIG_MPC8260 definition
         in config headers and include/common.h
       - Rename CONFIG_8260 to CONFIG_MPC8260
          in arch/powerpc/cpu/mpc8260/config.mk.
       - Rename #ifdef CONFIG_8260 to #ifdef CONFIG_MPC8260
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Wolfgang Denk <wd@denx.de>
      58dac327
    • M
      mips: move CONFIG_MIPS{32, 64} definition to config.mk · cfda6bd2
      Masahiro Yamada 提交于
      All mips32 boards define CONFIG_MIPS32 in config headers
      except malta boards which define it in boards.cfg.
      We can consolidate them by defining it in
      arch/mips/cpu/mips32/config.mk.
      
      CONFIG_MIPS64 definition can be moved to
      arch/mips/cpu/mips64/config.mk as well.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Acked-by: NDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      cfda6bd2
    • M
      kbuild: improve Kbuild speed · 026f9cf2
      Masahiro Yamada 提交于
      Kbuild brought about many advantages for us but a significant
      performance regression was reported by Simon Glass.
      
      After some discussions and analysis, it turned out
      its main cause is in $(call cc-option,...).
      
      Historically, U-Boot parses all config.mk
      (arch/*/config.mk and board/*/config.mk)
      every time descending into subdirectories.
      That means cc-options are evaluated over and over again.
      
      $(call cc-option,...) is useful but costly.
      So we want to evaluate them only in ./Makefile
      and spl/Makefile and export compiler flags.
      
      This commit changes the build system as follows:
      
        - Modify scripts/Makefile.build to not include config.mk
          Instead, add $(PLATFORM_CPPFLAGS) to asflags-y, ccflags-y,
          cppflags-y.
      
        - Export many variables
          Going forward, Kbuild will not parse config.mk files
          when it descends into subdirectories.
          If we want to set variables in config.mk and use them
          in subdirectories, they must be exported.
      
          This is the list of variables to get exported:
            PLATFORM_CPPFLAGS
            CPUDIR
            BOARDDIR
            OBJCOPYFLAGS
            LDFLAGS
            LDFLAGS_FINAL
              (used in nand_spl/board/*/*/Makefile)
            CONFIG_STANDALONE_LOAD_ADDR
              (used in examples/standalone/Makefile)
            SYM_PREFIX
              (used in examples/standalone/Makefile)
            RELFLAGS
              (used in examples/standalone/Makefile)
      
        - Delete CPPFLAGS
          This variable has been replaced with PLATFORM_CPPFLAGS
      
        - Copy gcclibdir from example/standalone/Makefile
          to arch/sparc/config.mk
          The reference in CONFIG_STANDALONE_LOAD_ADDR must be
          resolved before it is exported.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Reported-by: NSimon Glass <sjg@chromium.org>
      Acked-by: NSimon Glass <sjg@chromium.org>
      Tested-by: Simon Glass <sjg@chromium.org> [on Sandbox]
      Tested-by: Stephen Warren <swarren@nvidia.com> [on Tegra]
      026f9cf2
    • M
      config.mk: specify the exact path to standalone linker script · a0a15b44
      Masahiro Yamada 提交于
      We want to change the build system to include config.mk
      only from ./Makefile and spl/Makefile.
      We must prepare for that in this commit.
      
      $(src) is a moving target and not handy for our purpose.
      We must replace it with a fixed path.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      a0a15b44
    • M
      kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBGCC · cd2e46cb
      Masahiro Yamada 提交于
      Before this commit, USE_PRIVATE_LIBGCC was defined in
      arch-specific config.mk and referenced in
      arch/$(ARCH)/lib/Makefile.
      
      We are not happy about parsing config.mk again and again.
      We have to keep the same behavior with a different way.
      
      By adding "CONFIG_" prefix, this macro appears
      in include/autoconf.mk, include/spl-autoconf.mk.
      (And treating USE_PRIVATE_LIBGCC as CONFIG macro
      is reasonable enough.)
      
      Tegra SoC family defined USE_PRIVATE_LIBGCC as "yes"
      in arch/arm/cpu/arm720t/tegra*/config.mk,
      whereas did not define it in arch/arm/cpu/armv7/tegra*/config.mk.
      
      It means Tegra enables PRIVATE_LIBGCC only for SPL.
      We can describe the same behavior by adding
      
        #ifdef CONFIG_SPL_BUILD
        # define CONFIG_USE_PRIVATE_LIBGCC
        #endif
      
      to include/configs/tegra-common.h.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Tom Warren <twarren@nvidia.com>
      Cc: Simon Glass <sjg@chromium.org>
      Acked-by: NStephen Warren <swarren@nvidia.com>
      cd2e46cb
    • M
      kbuild, blackfin: Add CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED · e91df49f
      Masahiro Yamada 提交于
      Many (but not all) of Blackfin boards give -O2 option
      to compile under lib/ directory.
      That means lib/ should be speed-optimized,
      whereas other parts should be size-optimized.
      
      We want to keep the same behavior,
      but do not want to parse board/*/config.mk again and again.
      We've got no choice but to invent a new method.
      
      CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED, if it is enabled,
      gives -O2 flag only for building under lib/ directory.
      
      Dirty codes which I had marked as "FIX ME"
      in board/${BOARD}/config.mk have been deleted.
      Instead, CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED has been
      defined in include/configs/${BOARD}.h.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Sonic Zhang <sonic.zhang@analog.com>
      e91df49f
    • T
      cmd_nvedit: Make 'env import -c' require size parameter · 3775dcd9
      Tom Rini 提交于
      When importing a checksummed area we need to be told how big the area in
      question is so that we know that will match the size of the area which
      the checksum is generated against.
      Reported-by: NPierre AUBERT <p.aubert@staubli.com>
      Signed-off-by: NTom Rini <trini@ti.com>
      3775dcd9
    • V
      Cosmetic: Typo fixes · 801cec59
      Vasili Galka 提交于
      Signed-off-by: NVasili Galka <vasili@visionmap.com>
      801cec59
    • S
      ppc4xx: Remove 4xx NAND booting support · 345b77ba
      Stefan Roese 提交于
      As ppc4xx currently only supports the deprecated nand_spl infrastructure
      and nobody seems to have time / resources to port this over to the newer
      SPL infrastructure, lets remove NAND booting completely.
      
      This should not affect the "normal", non NAND-booting ppc4xx platforms
      that are currently supported.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Tirumala Marri <tmarri@apm.com>
      Cc: Matthias Fuchs <matthias.fuchs@esd.eu>
      Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Tom Rini <trini@ti.com>
      Tested-by: NMatthias Fuchs <matthias.fuchs@esd.eu>
      345b77ba
    • H
      net/phy: Correct AR8021 phy_mask · dc116bd6
      Haijun.Zhang 提交于
      There was wrong phy_mask for AR8021 device,
      so the AR8021 can't be probed correctly.
      Changed it from 0x4fffff to 0x4ffff0.
      Signed-off-by: NHaijun Zhang <Haijun.Zhang@freescale.com>
      dc116bd6
    • M
      xilinx: delete meaningless .gitignore files · cbac2a6e
      Masahiro Yamada 提交于
      config.tmp is never generated
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Acked-by: NMichal Simek <michal.simek@xilinx.com>
      cbac2a6e
    • S
      unit-test: make "test -e" test independent of $CWD · cfd13e8d
      Stephen Warren 提交于
      The unit-test for hush's "test -e" currently relies upon being run in
      the U-Boot build directory, because it tests for the existence of a file
      that exists in that directory.
      
      Fix this by explicitly creating the file we use for the existence test,
      and deleting it afterwards so that multiple successive unit-test
      invocations succeed. This required adding an os.c function to erase
      files.
      Reported-by: NSimon Glass <sjg@chromium.org>
      Signed-off-by: NStephen Warren <swarren@wwwdotorg.org>
      cfd13e8d
    • S
      hush: fix some quoted variable expansion issues · fe9ca3d3
      Stephen Warren 提交于
      The following shell command fails:
      
      if test -z "$x"; then echo "zero"; else echo "non-zero"; fi
      
      (assuming $x does not exist, it prints "non-zero" rather than "zero").
      
      ... since "$x" expands to nothing, and the argument is completely
      dropped, causing too few to be passed to -z, causing cmd_test() to
      error out early.
      
      This is because when variable expansions are processed by make_string(),
      the expanded results are concatenated back into a new string. However,
      no quoting is applied when doing so, so any empty variables simply don't
      generate any parameter when the combined string is parsed again.
      
      Fix this by explicitly replacing quoting any argument that was originally
      quoted when re-generating a string from the already-parsed argument list.
      
      This also fixes loss of whitespace in commands such as:
      
      setenv space " "
      setenv var " 1${space}${space} 2 "
      echo ">>${var}<<"
      Reported-by: NRussell King <linux@arm.linux.org.uk>
      Acked-by: NSimon Glass <sjg@chromium.org>
      Signed-off-by: NStephen Warren <swarren@wwwdotorg.org>
      fe9ca3d3
    • S
      unit-test: clean up evironment after Hush tests · eebd1b58
      Stephen Warren 提交于
      Delete the temporary variables that are used to save unit-test results
      from the environment after running the test. This prevents polluting
      the environment, or growing it too much.
      Signed-off-by: NStephen Warren <swarren@wwwdotorg.org>
      Acked-by: NSimon Glass <sjg@chromium.org>
      eebd1b58
    • S
      net: asix: don't pad odd-length TX packets · 9a04a858
      Stephen Warren 提交于
      For Ethernet/USB RX packets, the ASIX HW pads odd-sized packets so that
      they have an even size. Currently, asix_recv() does remove this padding,
      and asic_send() adds equivalent padding in the TX path. However, the HW
      does not appear to need this packing for TX packets in practical testing
      with "ASIX Elec. Corp. AX88x72A 000001" Vendor: 0x0b95 Product 0x7720
      Version 0.1. The Linux kernel does no such padding for the TX path.
      
      Remove the padding from the TX path:
      
      * For consistency with the Linux kernel.
      * NVIDIA has a Tegra simulator which validates that the length of USB
        packets sent to an ASIX device matches the packet length value inside
        the packet data. Having U-Boot and the kernel do the same thing when
        creating the TX packets simplifies the simulator's validation.
      
      Cc: Lucas Stach <dev@lynxeye.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      Acked-by: NMarek Vasut <marex@denx.de>
      Tested-by: NMarek Vasut <marex@denx.de>
      Tested-by: NGerhard Sittig <gsi@denx.de>
      9a04a858
  5. 05 3月, 2014 4 次提交