12 May, 2017

1 commit

  • We will see warnings such as:
    net/eth_common.c:57:61: warning: data argument not used by format string [-Wformat-extra-args]
    sprintf(enetvar, index ? "%s%daddr" : "%saddr", base_name, index);
    ~~~~~~~~ ^
    With clang. In this case we do not want to re-write our code to be less
    compact as the above is intentional and readable. Add a comment above
    the disabling so that it's clear why we want that warning off.

    Signed-off-by: Tom Rini

    Tom Rini
     

29 Jan, 2016

3 commits


24 Jan, 2015

1 commit


20 Feb, 2014

1 commit

  • 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
     

01 Nov, 2013

1 commit


24 Jul, 2013

1 commit


07 Jul, 2012

1 commit


24 May, 2012

5 commits


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
     

12 Oct, 2010

1 commit


14 Dec, 2009

1 commit


08 Aug, 2009

1 commit

  • Minor ./net cleanups - no functional changes
    - change #ifdef DEBUG printf(); #endif to just debug()
    - changed __FUNCTION__ to __func__
    - got rid of extra whitespace between function and opening brace
    - removed unnecessary braces on if statements

    gcc dead code elimination should make this functionally/size equivalent
    when DEBUG is not defined. (confirmed on Blackfin, with gcc 4.3.3).

    Signed-off-by: Robin Getz

    Signed-off-by: Ben Warren

    Robin Getz
     

23 Jul, 2009

1 commit

  • On 04 Oct 2008 Pieter posted a dns implementation for U-Boot.

    http://www.mail-archive.com/u-boot-users@lists.sourceforge.net/msg10216.html
    >
    > DNS can be enabled by setting CFG_CMD_DNS. After performing a query,
    > the serverip environment var is updated.
    >
    > Probably there are some cosmetic issues with the patch. Unfortunatly I
    > do not have the time to correct these. So if anybody else likes DNS
    > support in U-Boot and has the time, feel free to patch it in the main tree.

    Here it is again - slightly modified & smaller:
    - update to 2009-06 (Pieter's patch was for U-Boot 1.2.0)
    - README.dns is added
    - syntax is changed (now takes a third option, the env var to store
    the result in)
    - add a random port() function in net.c
    - sort Makefile in ./net/Makefile
    - dns just returns unless a env var is given
    - run through checkpatch, and clean up style issues
    - remove packet from stack
    - cleaned up some comments
    - failure returns much faster (if server responds, don't wait for
    timeout)
    - use built in functions (memcpy) rather than byte copy.

    Signed-off-by: Robin Getz
    Signed-off-by: Pieter Voorthuijsen
    Signed-off-by: Ben Warren

    Robin Getz
     

10 Feb, 2009

1 commit


16 Nov, 2007

1 commit

  • This change is in preparation for condtitionial compile support in the
    build system. By spliting them all into seperate lines now, subsequent
    patches that change 'COBJS-y += ' into 'COBJS-$(CONFIG_) += ' will
    be less invasive and easier to review

    Signed-off-by: Grant Likely

    Grant Likely
     

09 Oct, 2006

1 commit


02 Sep, 2006

1 commit

  • Modifications are based on the linux kernel approach and
    support two use cases:

    1) Add O= to the make command line
    'make O=/tmp/build all'

    2) Set environement variable BUILD_DIR to point to the desired location
    'export BUILD_DIR=/tmp/build'
    'make'

    The second approach can also be used with a MAKEALL script
    'export BUILD_DIR=/tmp/build'
    './MAKEALL'

    Command line 'O=' setting overrides BUILD_DIR environent variable.

    When none of the above methods is used the local build is performed and
    the object files are placed in the source directory.

    Marian Balakowicz
     

01 Apr, 2005

1 commit


24 Feb, 2004

1 commit


06 Jun, 2003

1 commit


25 Feb, 2002

1 commit