20 Feb, 2014

2 commits

  • 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: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     
  • 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 " 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="
    syntax for descending into sub-directories.
    (We can write it like "make $(obj)=" with a shorthand.)
    This means the current working directory is always the top
    of the output directory.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     

25 Jan, 2014

1 commit


25 Nov, 2013

2 commits


18 Nov, 2013

2 commits


01 Nov, 2013

1 commit


03 Apr, 2013

1 commit

  • This makes sure we have inline functions such as inb/outb that
    are used in these two files by including the arch-specific
    header. However the ARM version does not provide the
    accessors unless the config symbol __io is also defined so add
    that in front of the include.

    After this the bios emulator will compile on ARM systems.

    Signed-off-by: Linus Walleij

    Linus Walleij
     

02 Apr, 2013

1 commit

  • 'bool' is defined in random places. This patch consolidates them into a
    single header file include/linux/types.h, using stdbool.h introduced in C99.

    All other #define, typedef and enum are removed. They are all consistent with
    true = 1, false = 0.

    Replace FALSE, False with false. Replace TRUE, True with true.
    Skip *.py, *.php, lib/* files.

    Signed-off-by: York Sun

    York Sun
     

15 May, 2012

1 commit


27 Nov, 2011

1 commit


17 Nov, 2011

1 commit

  • Fix:

    x86emu/ops.c: In function 'x86emuOp_int3':
    x86emu/ops.c:3521:9: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
    x86emu/ops.c: In function 'x86emuOp_int_IMM':
    x86emu/ops.c:3549:9: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
    x86emu/ops.c: In function 'x86emuOp_into':
    x86emu/ops.c:3579:9: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
    x86emu/ops.c: In function 'x86emuOp_aad':
    x86emu/ops.c:3993:8: warning: variable 'a' set but not used [-Wunused-but-set-variable]

    Signed-off-by: Kumar Gala

    Kumar Gala
     

18 Oct, 2011

1 commit


18 Nov, 2010

1 commit

  • 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: Sebastien Carlier

    Sebastien Carlier
     

08 Apr, 2010

2 commits

  • Use pci_bus_to_virt() to convert the bus address from the BARs to
    virtual address' to eliminate the direct mapping requirement.

    Rename variables to better match usage (_phys -> _bus or no-suffix)

    This fixes the mpc8572ds CONFIG_PHYS_64BIT mode failure:
    "videoboot: Video ROM failed to map!"

    Tested on mpc8572ds with and without CONFIG_PHYS_64BIT.

    Signed-off-by: Ed Swarthout

    Ed Swarthout
     
  • Console was being switched to video even if emulator fails and
    causing this hang:

    Scanning PCI bus 04
    04 00 1095 3132 0104 00
    PCIE3 on bus 03 - 04
    Video: ATI Radeon video card (1002, 5b60) found @(2:0:0)
    videoboot: Booting PCI video card bus 2, function 0, device 0
    videoboot: Video ROM failed to map!
    640x480x8 31kHz 59Hz
    radeonfb: FIFO Timeout !

    Signed-off-by: Ed Swarthout
    Tested-by: Anatolij Gustschin

    Ed Swarthout
     

18 Dec, 2009

1 commit

  • make -C drivers/bios_emulator/
    make[2]: Entering directory
    `drivers/bios_emulator'
    In file included from atibios.c:49:
    biosemui.h:47:21: error: biosemu.h: No such file or directory
    ...
    x86emu/decode.c:40:28: error: x86emu/x86emui.h: No such file or directory
    ...

    Due to lack of proper CPPFLAGS being passed to .depend generation rule

    Signed-off-by: Kumar Gala

    Kumar Gala
     

13 Oct, 2009

1 commit


29 Jul, 2009

1 commit


24 Jul, 2009

2 commits


07 Dec, 2008

1 commit


17 Oct, 2008

1 commit

  • The function parse_line() in common/main.c was exposed globally by commit
    6636b62a6efc7f14e6e788788631ae7a7fca4537, Result in conflict with the same
    name funciton in drivers/bios_emulator/x86emu/debug.c when define the DEBUG.
    This patch fix this by renaming the function in the debug.c file.

    Signed-off-by: Jason Jin

    Jason Jin
     

21 May, 2008

1 commit

  • This commit gets rid of a huge amount of silly white-space issues.
    Especially, all sequences of SPACEs followed by TAB characters get
    removed (unless they appear in print statements).

    Also remove all embedded "vim:" and "vi:" statements which hide
    indentation problems.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

16 Feb, 2008

1 commit


18 Nov, 2007

1 commit


07 Sep, 2007

1 commit


16 Aug, 2007

1 commit


10 Aug, 2007

2 commits


06 Aug, 2007

2 commits