Skip to content
Snippets Groups Projects
  1. Jul 21, 2015
    • Simon Glass's avatar
      dm: Add support for LEDs · 5917112c
      Simon Glass authored
      
      Add a simple uclass for LEDs, so that these can be controlled by the device
      tree and activated when needed. LEDs are referred to by their label.
      
      This implementation requires a driver for each type of LED (e.g GPIO, I2C).
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      5917112c
    • Simon Glass's avatar
      dm: Reduce SPL device tree size · fa78e0a3
      Simon Glass authored
      
      The SPL device tree size must be minimised to save memory. Only include
      properties that are needed by SPL - this is determined by the presence
      of the "u-boot,dm-pre-reloc" property. Also remove a predefined list of
      unused properties from the nodes that remain.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      fa78e0a3
  2. Jun 11, 2015
  3. Jun 08, 2015
    • Stefan Roese's avatar
      Kconfig: Enable usage of escape char '\' in string values · 20c20826
      Stefan Roese authored
      
      I might have missed something, but I failed to use the escape char '\'
      in strings. To pass a printf format string like "foo %d bar\n" via
      Kconfig to the code.
      
      Right now its not possible to use the escape character '\' in Kconfig
      string values correctly to e.g. set this string value "test output\n".
      The '\n' will be converted to 'n'.
      
      The current implementation removes some of the '\' chars from the input
      string in conf_set_sym_val(). Examples:
      
      '\'	-> ''
      '\\'	-> '\'
      '\\\'	-> '\'
      '\\\\'	-> '\\'
      ...
      
      And then doubles the backslash chars in the output string in
      sym_escape_string_value(). Example:
      
      '\'	-> ''	-> ''
      '\\'	-> '\'	-> '\\'
      '\\\'	-> '\'	-> '\\'
      '\\\\'	-> '\\'	-> '\\\\'
      ...
      
      As you see in these examples, its impossible to generate a single '\'
      charater in the output string as its needed for something like '\n'.
      
      This patch now changes this behavior to not drop some backslashes in
      conf_set_sym_val() and to not add new backslashes in the resulting
      output string. Removing the function sym_escape_string_value()
      completely as its not needed anymore.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Cc: Tom Rini <trini@konsulko.com>
      20c20826
  4. May 28, 2015
    • Masahiro Yamada's avatar
      kbuild: define DO_DEPS_ONLY for u-boot.cfg to fix build error · 3113471f
      Masahiro Yamada authored
      
      Since 741e58e0 (Create a .cfg file containing the CONFIG options
      used to build), all the Blackfin boards fail to build if the parallel
      (-j) option is passed.
      
        $ make -s bf506f-ezkit_defconfig
        #
        # configuration written to .config
        #
        $ make -j8 CROSS_COMPILE=bfin-elf-
        scripts/kconfig/conf --silentoldconfig Kconfig
          CHK     include/config.h
          UPD     include/config.h
          GEN     include/autoconf.mk
          GEN     include/autoconf.mk.dep
          CHK     include/config/uboot.release
          CHK     include/generated/timestamp_autogenerated.h
          UPD     include/generated/timestamp_autogenerated.h
          CFG     u-boot.cfg
        include/asm-offsets.h:3:43: fatal error:
        generated/generic-asm-offsets.h: No such file or directory
        compilation terminated.
        make: *** [u-boot.cfg] Error 1
      
      When parsing header files for defined CONFIG options, DO_DEPS_ONLY
      must be defined to exclude generated headers that might not have
      been available yet.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      3113471f
  5. May 26, 2015
    • Joe Hershberger's avatar
      moveconfig: Ignore duplicate configs when moving · 7740f653
      Joe Hershberger authored
      
      When moving configs, it is important to know what was defined in the
      config header even if it duplicates the configs coming from Kconfig.
      
      This is specifically needed for the case where a config is set to
      default 'y' in the Kconfig. This would previously cause the actual value
      from the include config to be filtered out, and moveconfig.py would
      think that it was 'n'... This means that the value that should be 'y'
      is now (in every defconfig) set to 'not set'.
      
      tools/moveconfig.py now defines KCONFIG_IGNORE_DUPLICATES to prevent the
      filtering from happening and selecting wrong values for the defconfig.
      
      Signed-off-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      Acked-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      7740f653
  6. Apr 18, 2015
  7. Apr 07, 2015
  8. Mar 28, 2015
  9. Mar 06, 2015
  10. Mar 05, 2015
  11. Mar 02, 2015
  12. Feb 24, 2015
    • Masahiro Yamada's avatar
      kconfig: remove unneeded dependency on !SPL_BUILD · d648964f
      Masahiro Yamada authored
      
      Now CONFIG_SPL_BUILD is not defined in Kconfig, so
      "!depends on SPL_BUILD" and "if !SPL_BUILD" are redundant.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      d648964f
    • Masahiro Yamada's avatar
      kconfig: switch to single .config configuration · e02ee254
      Masahiro Yamada authored
      
      When Kconfig for U-boot was examined, one of the biggest issues was
      how to support multiple images (Normal, SPL, TPL).  There were
      actually two options, "single .config" and "multiple .config".
      After some discussions and thought experiments, I chose the latter,
      i.e. to create ".config", "spl/.config", "tpl/.config" for Normal,
      SPL, TPL, respectively.
      
      It is true that the "multiple .config" strategy provided us the
      maximum flexibility and helped to avoid duplicating CONFIGs among
      Normal, SPL, TPL, but I have noticed some fatal problems:
      
      [1] It is impossible to share CONFIG options across the images.
        If you change the configuration of Main image, you often have to
        adjust some SPL configurations correspondingly.  Currently, we
        cannot handle the dependencies between them.  It means one of the
        biggest advantages of Kconfig is lost.
      
      [2] It is too painful to change both ".config" and "spl/.config".
        Sunxi guys started to work around this problem by creating a new
        configuration target.  Commit cbdd9a97 (sunxi: kconfig: Add
        %_felconfig rule to enable FEL build of sunxi platforms.) added
        "make *_felconfig" to enable CONFIG_SPL_FEL on both images.
        Changing the configuration of multiple images in one command is a
        generic demand.  The current implementation cannot propose any
        good solution about this.
      
      [3] Kconfig files are getting ugly and difficult to understand.
        Commit b724bd7d (dm: Kconfig: Move CONFIG_SYS_MALLOC_F_LEN to
        Kconfig) has sprinkled "if !SPL_BUILD" over the Kconfig files.
      
      [4] The build system got more complicated than it should be.
        To adjust Linux-originated Kconfig to U-Boot, the helper script
        "scripts/multiconfig.sh" was introduced.  Writing a complicated
        text processor is a shell script sometimes caused problems.
      
      Now I believe the "single .config" will serve us better.  With it,
      all the problems above would go away.  Instead, we will have to add
      some CONFIG_SPL_* (and CONFIG_TPL_*) options such as CONFIG_SPL_DM,
      but we will not have much.  Anyway, this is what we do now in
      scripts/Makefile.spl.
      
      I admit my mistake with my apology and this commit switches to the
      single .config configuration.
      
      It is not so difficult to do that:
      
       - Remove unnecessary processings from scripts/multiconfig.sh
        This file will remain for a while to support the current defconfig
        format.  It will be removed after more cleanups are done.
      
       - Adjust some makefiles and Kconfigs
      
       - Add some entries to include/config_uncmd_spl.h and the new file
         scripts/Makefile.uncmd_spl.  Some CONFIG options that are not
         supported on SPL must be disabled because one .config is shared
         between SPL and U-Boot proper going forward.  I know this is not
         a beautiful solution and I think we can do better, but let's see
         how much we will have to describe them.
      
       - update doc/README.kconfig
      
      More cleaning up patches will follow this.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      e02ee254
  13. Feb 21, 2015
    • Masahiro Yamada's avatar
      kbuild: prepare for moving headers into mach-*/include/mach · 0e7368c6
      Masahiro Yamada authored
      
      In U-Boot, SoC-specific headers are placed in
      arch/$(ARCH)/include/asm/arch-$(SOC) and a symbolic link to that
      directory is created at the early stage of the build process.
      
      Creating and removing a symbolic link during the build is not
      preferred.  In fact, Linux Kernel did away with include/asm-$(ARCH)
      directories a long time time ago.
      
      As for ARM, now it is possible to collect SoC sources into
      arch/arm/mach-$(SOC).  It is also reasonable to move SoC headers
      into arch/arm/mach-$(SOC)/include/mach.
      
      This commit prepares for that.
      If the directory arch/$(ARCH)/mach-$(SOC)/include/mach exists,
      a symbolic to that directory is created.  Otherwise, a symbolic link
      to arch/$(ARCH)/include/asm/arch-$(SOC) or arch-$(CPU) is created.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      0e7368c6
  14. Feb 16, 2015
  15. Feb 06, 2015
  16. Jan 14, 2015
  17. Jan 08, 2015
  18. Dec 29, 2014
  19. Dec 08, 2014
  20. Nov 25, 2014
  21. Nov 23, 2014
  22. Nov 21, 2014
  23. Nov 17, 2014
  24. Nov 12, 2014
  25. Nov 07, 2014
    • Masahiro Yamada's avatar
      kbuild: sync misc scripts with Linux 3.18-rc1 · 176d0982
      Masahiro Yamada authored
      
      This commit imports some updates in misc scripts from Linux 3.18-rc1.
      
      [1] commit cbb4d3e6510b99522719c5ef0 by Horia Geanta
      scripts/kernel-doc: handle object-like macros
      
      [2] commit 164f0d2efaaef83 by Michal Marek
      kbuild: Fix handling of backslashes in *.cmd files
      
      [3] commit 270a00963cd367214e by Randy Dunlap
      scripts/kernel-doc: recognize __meminit
      
      [4] commit a4954fd7724c0f55361eb5 by Masahiro Yamada
        kbuild: remove obj-n and lib-n handling
      
      [5] commit 5b2389b45d1a9c12b9f by Masahiro Yamada
      kbuild: simplify build, clean, modbuiltin shorthands
      
      Signed-off-by: default avatarHoria Geanta <horia.geanta@freescale.com>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      176d0982
    • Masahiro Yamada's avatar
      kconfig: sync kconfig files with Linux 3.18-rc1 · ad618992
      Masahiro Yamada authored
      
      This commit imports Kconfig updates from Linux 3.18-rc1.
      
      'kvmconfig' and 'tinyconfig' help message have been commented out
      since they are unavailable at least now;  in the future perhaps
      we can implement 'tinyconfig' to disable most of CONFIG_CMD_* to
      create a very small U-Boot image.
      
      [1] commit 3aaefce10351 by Josh Triplett
      x86, platform, kconfig: move kvmconfig functionality to a helper
      
      [2] commit 0da1d4a0b951 by Josh Triplett
      x86: Add "make tinyconfig" to configure the tiniest possible kernel
      
      [3] commit c40724d3f381 by Brian Norris
        kconfig: lxdialog: fix spelling
      
      [4] commit 7285996aa000 by Brian Norris
        kconfig: nconfig: fix multi-byte UTF handling
      
      Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      ad618992
    • Masahiro Yamada's avatar
      kbuild: sync top Makefile with Linux 3.18-rc1 · ffe29ebc
      Masahiro Yamada authored
      
      Since Linux 3.15, relative path feature and related fixes,
      cleanups have been merged to the top Makefile.
      
      The relative path feature looks stable enough, so let's import it
      to U-Boot along with various cleanups.
      
      Commits imported from Linux (some need adjustment) are:
      
      [1] commit 7e1c04779efd by Michal Marek
        kbuild: Use relative path for $(objtree)
      
      [2] commit 890676c65d69 by Michal Marek
        kbuild: Use relative path when building in the source tree
      
      [3] commit 9da0763bdd82 by Michal Marek
        kbuild: Use relative path when building in a subdir of the source tree
      
      [4] commit c2e28dc975ea by Michal Marek
        kbuild: Print the name of the build directory
      
      [5] commit 066b7ed95580 by Michal Marek
        kbuild: Do not print the build directory with make -s
      
      [6] commit 3f1d9a6cec01 by Michal Marek
        kbuild: make -s should be used with kernelrelease/kernelversion/image_name
      
      [7] commit 7ff525712acf by Masahiro Yamada
        kbuild: fake the "Entering directory ..." message more simply
      
      [8] commit 745a254322c8 by Masahiro Yamada
        kbuild: use $(Q) for sub-make target
      
      [9] commit aa55c8e2f7a3 by Masahiro Yamada
        kbuild: handle C=... and M=... after entering into build directory
      
      [10] commit ab7474ea5361 by Borislav Petkov
        Kbuild: Ignore GREP_OPTIONS env variable
      
      To use relative path feature, tools/Makefile and scripts/Makefile.autoconf
      must be tweaked.
      
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      ffe29ebc
    • Masahiro Yamada's avatar
      kbuild: improve multi-objs dependency and cleanups · cb6e7b0d
      Masahiro Yamada authored
      
      Since Linux 3.18-rc1, Kbuild is able to handle multi-objs
      dependency correctly, which also allows us futher cleanups
      of some makefiles.
      
      This commit imports those commits:
      
      [1] commit c8589d1e9e01 by Masahiro Yamada
      kbuild: handle multi-objs dependency appropriately
      
      [2] commit 97e3226e6e98 by Masahiro Yamada
      kbuild: handle the dependency of multi-objs hostprogs appropriately
      
      [3] commit 022af62d0190 by Masahiro Yamada
      kbuild: refactor script/kconfig/Makefile
      
      [4] commit 221ecca6cafe by Masahiro Yamada
      kbuild: remove redundant clean-files from scripts/kconfig/Makefile
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      cb6e7b0d
    • Masahiro Yamada's avatar
      kbuild: bug fixes and cleanups of Makefile.host · 87e90729
      Masahiro Yamada authored
      
      This commit imports updates of scripts/Makefile.host
      from Linux 3.18-rc1.
      
      Imported commits are:
      
      [1] commit d8d9efe22709 by Masahiro Yamada
        kbuild: fix a typo in scripts/Makefile.host
      
      [2] commit edb950c17de0 by Masahiro Yamada
        kbuild: fix a bug of C++ host program handling
      
      [3] commit 62e2210798ed by Masahiro Yamada
        kbuild: drop shared library support from Makefile.host
      
      [4] commit 663935593915 by Masahiro Yamada
        kbuild: clean up scripts/Makefile.host
      
      [5] commit 1791ff7179f6 by Masahiro Yamada
        kbuild: clean-up and bug fix of scripts/Makefile.host
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      87e90729
  26. Nov 05, 2014
  27. Nov 04, 2014
  28. Oct 27, 2014
  29. Oct 23, 2014
Loading