Skip to content
Snippets Groups Projects
  1. Oct 25, 2014
  2. Jul 07, 2014
  3. Apr 18, 2014
  4. Mar 04, 2014
  5. Feb 19, 2014
    • Masahiro Yamada's avatar
      kbuild: use Linux Kernel build scripts · 6825a95b
      Masahiro Yamada authored and Tom Rini's avatar Tom Rini committed
      
      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
    • Masahiro Yamada's avatar
      kbuild: change out-of-tree build · 9e414032
      Masahiro Yamada authored and Tom Rini's avatar Tom Rini committed
      
      This commit changes the working directory
      where the build process occurs.
      
      Before this commit, build process occurred under the source
      tree for both in-tree and out-of-tree build.
      
      That's why we needed to add $(obj) prefix to all generated
      files in makefiles like follows:
        $(obj)u-boot.bin:  $(obj)u-boot
      
      Here, $(obj) is empty for in-tree build, whereas it points
      to the output directory for out-of-tree build.
      
      And our old build system changes the current working directory
      with "make -C <sub-dir>" syntax when descending into the
      sub-directories.
      
      On the other hand, Kbuild uses a different idea
      to handle out-of-tree build and directory descending.
      
      The build process of Kbuild always occurs under the output tree.
      When "O=dir/to/store/output/files" is given, the build system
      changes the current working directory to that directory and
      restarts the make.
      
      Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj=<sub-dir>"
      syntax for descending into sub-directories.
      (We can write it like "make $(obj)=<sub-dir>" with a shorthand.)
      This means the current working directory is always the top
      of the output directory.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: default avatarGerhard Sittig <gsi@denx.de>
      9e414032
    • Masahiro Yamada's avatar
      Makfile: move suffix rules to Makefile.build · 5651ccff
      Masahiro Yamada authored and Tom Rini's avatar Tom Rini committed
      
      This commit moves suffix rules from config.mk
      to scripts/Makefile.build, which will allow us
      to switch smoothly to real Kbuild.
      
      Note1:
      post/lib_powerpc/fpu/Makefile has
      its own rule to compile C sources.
      We need to tweak it to keep the same behavior.
      
      Note2:
      There are two file2 with the same name:
      arch/arm/lib/crt0.S and eamples/api/crt0.S.
      To keep the same build behavior,
      examples/api/Makefile also has to be treaked.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      5651ccff
  6. Dec 16, 2013
  7. Dec 13, 2013
  8. Nov 25, 2013
  9. Nov 01, 2013
  10. Oct 14, 2013
  11. Sep 20, 2013
  12. Jul 24, 2013
  13. May 01, 2013
  14. Oct 28, 2012
  15. Oct 15, 2012
  16. Mar 30, 2012
  17. Mar 18, 2012
  18. Mar 12, 2012
  19. Feb 12, 2012
  20. Jan 13, 2012
  21. Dec 23, 2011
    • Wolfgang Denk's avatar
      post/lib_powerpc/multi.c: fix stack overflow error · 7ddd4475
      Wolfgang Denk authored
      
      The code and comment disagreed: the comment claimed that r6...r31
      were copied, and consequently the arrays for "src" and "dst" were
      declared with 26 entries, but the actual code ("lmw r5,0(r3)" and
      "stmw r5,0(r4)") copied _27_ words (r5 through r31), which resulted
      in false "POST cpu Error at multi test" messages.
      
      Fix the comment and the array sizes.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      Cc: Andy Fleming <afleming@gmail.com>
      Acked-by: default avatarAnatolij Gustschin <agust@denx.de>
      Tested-by: default avatarAnatolij Gustschin <agust@denx.de>
      7ddd4475
    • Wolfgang Denk's avatar
      post/lib_powerpc/multi.c: code cleanup · 38081ff7
      Wolfgang Denk authored
      
      Clean up and document the code:
      
      - get rid of unneeded code block
      - add comment which code is generated
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      Cc: Andy Fleming <afleming@gmail.com>
      Acked-by: default avatarAnatolij Gustschin <agust@denx.de>
      38081ff7
    • Wolfgang Denk's avatar
      post/lib_powerpc/multi.c: make checkpatch clean · a63aec54
      Wolfgang Denk authored
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      Cc: Andy Fleming <afleming@gmail.com>
      Acked-by: default avatarAnatolij Gustschin <agust@denx.de>
      a63aec54
    • Wolfgang Denk's avatar
      PPC: fix "Warning: FOO uses hard float, BAR uses soft float". · 139e1875
      Wolfgang Denk authored
      
      It appears that with recent versions of GCC the explicit
      "-mhard-float" command line option takes precedence over the
      ``asm(".gnu_attribute 4, 2");'' in the source file, so this no longer
      helps to avoid the warnings we get when linking code that uses FP
      instructions with other code that was built using soft-float.
      
      We can remove the ".gnu_attribute" (which appears to carry no other
      information, at least so far) from the object files, but we also have
      to make sure we don't pull in the __gcc_qsub() and __gcc_qmul()
      functions from the standard libgcc, as these would again "infect" our
      linking.  We copy this code from:
      	gcc-4.2.2/gcc/config/rs6000/darwin-ldouble.c
      This old version was chosen because it was still available under a
      compatible license (GCC v2+).   The file was stripped down to the
      needed parts, and reformatted so it passes checkpatch with only one
      warning (do not add new typedefs).
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Andy Fleming <afleming@gmail.com>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      Tested-by: default avatarStefan Roese <sr@denx.de>
      Tested-by: default avatarAnatolij Gustschin <agust@denx.de>
      139e1875
  22. Dec 11, 2011
  23. Dec 10, 2011
  24. Dec 01, 2011
  25. Nov 16, 2011
  26. Nov 03, 2011
  27. Oct 27, 2011
  28. Oct 23, 2011
  29. Oct 05, 2011
Loading