public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/5] Kbuild: sync with Linux 3.16-rc1
@ 2014-06-16  9:56 Masahiro Yamada
  2014-06-16  9:56 ` [U-Boot] [PATCH 1/5] kbuild: move extra gcc checks to scripts/Makefile.extrawarn Masahiro Yamada
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Masahiro Yamada @ 2014-06-16  9:56 UTC (permalink / raw)
  To: u-boot


The merge window for Linux 3.16 is closed and Linux 3.16-rc1 is out now.

During the merge window, various Kbuild-related updates were merged into
the upstream.

This series imports them to U-Boot.



Masahiro Yamada (5):
  kbuild: move extra gcc checks to scripts/Makefile.extrawarn
  kbuild: sync mixed targets handling with Linux 3.16-rc1
  cosmetic: kbuild: clean-up coding style (sync with Linux 3.16-rc1)
  kbuild: Use relative path when possible
  scripts: objdiff: sync with Linux 3.16-rc1

 Makefile                   | 42 +++++++++++++++-----------
 mkconfig                   |  4 +--
 scripts/Makefile.build     | 65 ++--------------------------------------
 scripts/Makefile.extrawarn | 67 +++++++++++++++++++++++++++++++++++++++++
 scripts/Makefile.host      |  3 +-
 scripts/Makefile.lib       | 10 +++----
 scripts/basic/fixdep.c     |  8 ++---
 scripts/docproc.c          | 56 +++++++++++++++++------------------
 scripts/mkmakefile         | 15 +++-------
 scripts/objdiff            | 74 ++++++++++++++++++++++++++++------------------
 tools/Makefile             |  2 +-
 11 files changed, 185 insertions(+), 161 deletions(-)
 create mode 100644 scripts/Makefile.extrawarn

-- 
1.9.1

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 1/5] kbuild: move extra gcc checks to scripts/Makefile.extrawarn
  2014-06-16  9:56 [U-Boot] [PATCH 0/5] Kbuild: sync with Linux 3.16-rc1 Masahiro Yamada
@ 2014-06-16  9:56 ` Masahiro Yamada
  2014-06-16  9:56 ` [U-Boot] [PATCH 2/5] kbuild: sync mixed targets handling with Linux 3.16-rc1 Masahiro Yamada
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 16+ messages in thread
From: Masahiro Yamada @ 2014-06-16  9:56 UTC (permalink / raw)
  To: u-boot

This commit was imported from Linux Kernel:
commit a86fe353 written by me.

W=... provides extra gcc checks.

Having such code in scripts/Makefile.build results in the same flags
being added to KBUILD_CFLAGS multiple times becuase
scripts/Makefile.build is invoked every time Kbuild descends into
the subdirectories.

Since the top Makefile is already too cluttered, this commit moves
all of extra gcc check stuff to a new file scripts/Makefile.extrawarn,
which is included from the top Makefile.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 Makefile                   |  6 ++---
 scripts/Makefile.build     | 61 -----------------------------------------
 scripts/Makefile.extrawarn | 67 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+), 65 deletions(-)
 create mode 100644 scripts/Makefile.extrawarn

diff --git a/Makefile b/Makefile
index 24d9687..9563d8d 100644
--- a/Makefile
+++ b/Makefile
@@ -109,10 +109,6 @@ ifeq ("$(origin O)", "command line")
   KBUILD_OUTPUT := $(O)
 endif
 
-ifeq ("$(origin W)", "command line")
-  export KBUILD_ENABLE_EXTRA_GCC_CHECKS := $(W)
-endif
-
 # That's our default target when none is given on the command line
 PHONY := _all
 _all:
@@ -553,6 +549,8 @@ endif
 
 export CONFIG_SYS_TEXT_BASE
 
+include $(srctree)/scripts/Makefile.extrawarn
+
 # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
 KBUILD_CPPFLAGS += $(KCPPFLAGS)
 KBUILD_AFLAGS += $(KAFLAGS)
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 6416c1a..52c0022 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -75,67 +75,6 @@ ifeq ($(KBUILD_NOPEDANTIC),)
         endif
 endif
 
-#
-# make W=... settings
-#
-# W=1 - warnings that may be relevant and does not occur too often
-# W=2 - warnings that occur quite often but may still be relevant
-# W=3 - the more obscure warnings, can most likely be ignored
-#
-# $(call cc-option, -W...) handles gcc -W.. options which
-# are not supported by all versions of the compiler
-ifdef KBUILD_ENABLE_EXTRA_GCC_CHECKS
-warning-  := $(empty)
-
-warning-1 := -Wextra -Wunused -Wno-unused-parameter
-warning-1 += -Wmissing-declarations
-warning-1 += -Wmissing-format-attribute
-warning-1 += $(call cc-option, -Wmissing-prototypes)
-warning-1 += -Wold-style-definition
-warning-1 += $(call cc-option, -Wmissing-include-dirs)
-warning-1 += $(call cc-option, -Wunused-but-set-variable)
-warning-1 += $(call cc-disable-warning, missing-field-initializers)
-
-# Clang
-warning-1 += $(call cc-disable-warning, initializer-overrides)
-warning-1 += $(call cc-disable-warning, unused-value)
-warning-1 += $(call cc-disable-warning, format)
-warning-1 += $(call cc-disable-warning, unknown-warning-option)
-warning-1 += $(call cc-disable-warning, sign-compare)
-warning-1 += $(call cc-disable-warning, format-zero-length)
-warning-1 += $(call cc-disable-warning, uninitialized)
-warning-1 += $(call cc-option, -fcatch-undefined-behavior)
-
-warning-2 := -Waggregate-return
-warning-2 += -Wcast-align
-warning-2 += -Wdisabled-optimization
-warning-2 += -Wnested-externs
-warning-2 += -Wshadow
-warning-2 += $(call cc-option, -Wlogical-op)
-warning-2 += $(call cc-option, -Wmissing-field-initializers)
-
-warning-3 := -Wbad-function-cast
-warning-3 += -Wcast-qual
-warning-3 += -Wconversion
-warning-3 += -Wpacked
-warning-3 += -Wpadded
-warning-3 += -Wpointer-arith
-warning-3 += -Wredundant-decls
-warning-3 += -Wswitch-default
-warning-3 += $(call cc-option, -Wpacked-bitfield-compat)
-warning-3 += $(call cc-option, -Wvla)
-
-warning := $(warning-$(findstring 1, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS)))
-warning += $(warning-$(findstring 2, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS)))
-warning += $(warning-$(findstring 3, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS)))
-
-ifeq ("$(strip $(warning))","")
-        $(error W=$(KBUILD_ENABLE_EXTRA_GCC_CHECKS) is unknown)
-endif
-
-KBUILD_CFLAGS += $(warning)
-endif
-
 include scripts/Makefile.lib
 
 ifdef host-progs
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
new file mode 100644
index 0000000..6564350
--- /dev/null
+++ b/scripts/Makefile.extrawarn
@@ -0,0 +1,67 @@
+# ==========================================================================
+#
+# make W=... settings
+#
+# W=1 - warnings that may be relevant and does not occur too often
+# W=2 - warnings that occur quite often but may still be relevant
+# W=3 - the more obscure warnings, can most likely be ignored
+#
+# $(call cc-option, -W...) handles gcc -W.. options which
+# are not supported by all versions of the compiler
+# ==========================================================================
+
+ifeq ("$(origin W)", "command line")
+  export KBUILD_ENABLE_EXTRA_GCC_CHECKS := $(W)
+endif
+
+ifdef KBUILD_ENABLE_EXTRA_GCC_CHECKS
+warning-  := $(empty)
+
+warning-1 := -Wextra -Wunused -Wno-unused-parameter
+warning-1 += -Wmissing-declarations
+warning-1 += -Wmissing-format-attribute
+warning-1 += $(call cc-option, -Wmissing-prototypes)
+warning-1 += -Wold-style-definition
+warning-1 += $(call cc-option, -Wmissing-include-dirs)
+warning-1 += $(call cc-option, -Wunused-but-set-variable)
+warning-1 += $(call cc-disable-warning, missing-field-initializers)
+
+# Clang
+warning-1 += $(call cc-disable-warning, initializer-overrides)
+warning-1 += $(call cc-disable-warning, unused-value)
+warning-1 += $(call cc-disable-warning, format)
+warning-1 += $(call cc-disable-warning, unknown-warning-option)
+warning-1 += $(call cc-disable-warning, sign-compare)
+warning-1 += $(call cc-disable-warning, format-zero-length)
+warning-1 += $(call cc-disable-warning, uninitialized)
+warning-1 += $(call cc-option, -fcatch-undefined-behavior)
+
+warning-2 := -Waggregate-return
+warning-2 += -Wcast-align
+warning-2 += -Wdisabled-optimization
+warning-2 += -Wnested-externs
+warning-2 += -Wshadow
+warning-2 += $(call cc-option, -Wlogical-op)
+warning-2 += $(call cc-option, -Wmissing-field-initializers)
+
+warning-3 := -Wbad-function-cast
+warning-3 += -Wcast-qual
+warning-3 += -Wconversion
+warning-3 += -Wpacked
+warning-3 += -Wpadded
+warning-3 += -Wpointer-arith
+warning-3 += -Wredundant-decls
+warning-3 += -Wswitch-default
+warning-3 += $(call cc-option, -Wpacked-bitfield-compat)
+warning-3 += $(call cc-option, -Wvla)
+
+warning := $(warning-$(findstring 1, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS)))
+warning += $(warning-$(findstring 2, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS)))
+warning += $(warning-$(findstring 3, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS)))
+
+ifeq ("$(strip $(warning))","")
+        $(error W=$(KBUILD_ENABLE_EXTRA_GCC_CHECKS) is unknown)
+endif
+
+KBUILD_CFLAGS += $(warning)
+endif
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 2/5] kbuild: sync mixed targets handling with Linux 3.16-rc1
  2014-06-16  9:56 [U-Boot] [PATCH 0/5] Kbuild: sync with Linux 3.16-rc1 Masahiro Yamada
  2014-06-16  9:56 ` [U-Boot] [PATCH 1/5] kbuild: move extra gcc checks to scripts/Makefile.extrawarn Masahiro Yamada
@ 2014-06-16  9:56 ` Masahiro Yamada
  2014-06-16 17:58   ` Jeroen Hofstee
  2014-06-16  9:56 ` [U-Boot] [PATCH 3/5] cosmetic: kbuild: clean-up coding style (sync with Linux 3.16-rc1) Masahiro Yamada
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 16+ messages in thread
From: Masahiro Yamada @ 2014-06-16  9:56 UTC (permalink / raw)
  To: u-boot

"make %_config all" was supported for the first time in U-Boot:
  commit 53bca5ab
  kbuild: support simultaneous board configuration and "make all"

Surprisingly it had not been working in Linux Kernel for a long time.

So I sent back the patch to the Linux Kbuild community and it was
accepted with a little code improvement, at commit 9319f453.

Now, you can do "make defconfig all" or "make %_defconfig all"
in Linux too.

This commit updates some scripts to fill the code-diff
between Linux and U-Boot.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 Makefile           |  6 +++---
 scripts/mkmakefile | 15 ++++-----------
 2 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/Makefile b/Makefile
index 9563d8d..8a13d31 100644
--- a/Makefile
+++ b/Makefile
@@ -439,12 +439,12 @@ ifeq ($(mixed-targets),1)
 # We're called with mixed targets (*config and build targets).
 # Handle them one by one.
 
-PHONY += $(MAKECMDGOALS) build-one-by-one
+PHONY += $(MAKECMDGOALS) __build_one_by_one
 
-$(MAKECMDGOALS): build-one-by-one
+$(filter-out __build_one_by_one, $(MAKECMDGOALS)): __build_one_by_one
 	@:
 
-build-one-by-one:
+__build_one_by_one:
 	$(Q)set -e; \
 	for i in $(MAKECMDGOALS); do \
 		$(MAKE) -f $(srctree)/Makefile $$i; \
diff --git a/scripts/mkmakefile b/scripts/mkmakefile
index 0cc0442..84af27b 100644
--- a/scripts/mkmakefile
+++ b/scripts/mkmakefile
@@ -42,18 +42,11 @@ MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst %/,%,\$
 
 MAKEFLAGS += --no-print-directory
 
-.PHONY: all \$(MAKECMDGOALS)
+.PHONY: __sub-make \$(MAKECMDGOALS)
 
-all	:= \$(filter-out all Makefile,\$(MAKECMDGOALS))
+__sub-make:
+	\$(Q)\$(MAKE) \$(MAKEARGS) \$(MAKECMDGOALS)
 
-all:
-	\$(Q)\$(MAKE) \$(MAKEARGS) \$(all)
-
-Makefile:;
-
-\$(all): all
-	@:
-
-%/: all
+\$(filter-out __sub-make, \$(MAKECMDGOALS)): __sub-make
 	@:
 EOF
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 3/5] cosmetic: kbuild: clean-up coding style (sync with Linux 3.16-rc1)
  2014-06-16  9:56 [U-Boot] [PATCH 0/5] Kbuild: sync with Linux 3.16-rc1 Masahiro Yamada
  2014-06-16  9:56 ` [U-Boot] [PATCH 1/5] kbuild: move extra gcc checks to scripts/Makefile.extrawarn Masahiro Yamada
  2014-06-16  9:56 ` [U-Boot] [PATCH 2/5] kbuild: sync mixed targets handling with Linux 3.16-rc1 Masahiro Yamada
@ 2014-06-16  9:56 ` Masahiro Yamada
  2014-06-20 15:58   ` [U-Boot] [U-Boot, " Tom Rini
  2014-06-16  9:56 ` [U-Boot] [PATCH 4/5] kbuild: Use relative path when possible Masahiro Yamada
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 16+ messages in thread
From: Masahiro Yamada @ 2014-06-16  9:56 UTC (permalink / raw)
  To: u-boot

Import the following trivial commits from Linux v3.16-rc1:

 bb66fc6 kbuild: trivial - use tabs for code indent where possible
 7eb6e34 kbuild: trivial - remove trailing empty lines
 3fbb43d kbuild: trivial - fix comment block indent
 38385f8 kbuild: trivial - remove trailing spaces

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 Makefile               | 16 +++++++--------
 scripts/Makefile.build |  4 ++--
 scripts/Makefile.host  |  3 +--
 scripts/Makefile.lib   | 10 ++++-----
 scripts/basic/fixdep.c |  8 ++++----
 scripts/docproc.c      | 56 +++++++++++++++++++++++++-------------------------
 6 files changed, 48 insertions(+), 49 deletions(-)

diff --git a/Makefile b/Makefile
index 8a13d31..2116e9a 100644
--- a/Makefile
+++ b/Makefile
@@ -240,18 +240,18 @@ endif
 KBUILD_MODULES :=
 KBUILD_BUILTIN := 1
 
-#	If we have only "make modules", don't compile built-in objects.
-#	When we're building modules with modversions, we need to consider
-#	the built-in objects during the descend as well, in order to
-#	make sure the checksums are up to date before we record them.
+# If we have only "make modules", don't compile built-in objects.
+# When we're building modules with modversions, we need to consider
+# the built-in objects during the descend as well, in order to
+# make sure the checksums are up to date before we record them.
 
 ifeq ($(MAKECMDGOALS),modules)
   KBUILD_BUILTIN := $(if $(CONFIG_MODVERSIONS),1)
 endif
 
-#	If we have "make <whatever> modules", compile modules
-#	in addition to whatever we do anyway.
-#	Just "make" or "make all" shall build modules as well
+# If we have "make <whatever> modules", compile modules
+# in addition to whatever we do anyway.
+# Just "make" or "make all" shall build modules as well
 
 # U-Boot does not need modules
 #ifneq ($(filter all _all modules,$(MAKECMDGOALS)),)
@@ -1217,7 +1217,7 @@ CLOBBER_FILES += u-boot* MLO* SPL System.map
 
 # Directories & files removed with 'make mrproper'
 MRPROPER_DIRS  += include/config include/generated          \
-                  .tmp_objdiff
+		  .tmp_objdiff
 MRPROPER_FILES += .config .config.old \
 		  tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \
 		  include/config.h include/config.mk
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 52c0022..22e02a2 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -308,7 +308,7 @@ $(real-objs-m)      : modkern_aflags := $(KBUILD_AFLAGS_MODULE) $(AFLAGS_MODULE)
 $(real-objs-m:.o=.s): modkern_aflags := $(KBUILD_AFLAGS_MODULE) $(AFLAGS_MODULE)
 
 quiet_cmd_as_s_S = CPP $(quiet_modtag) $@
-cmd_as_s_S       = $(CPP) $(a_flags)   -o $@ $< 
+cmd_as_s_S       = $(CPP) $(a_flags)   -o $@ $<
 
 $(obj)/%.s: $(src)/%.S FORCE
 	$(call if_changed_dep,as_s_S)
@@ -402,7 +402,7 @@ link_multi_deps =                     \
 $(filter $(addprefix $(obj)/,         \
 $($(subst $(obj)/,,$(@:.o=-objs)))    \
 $($(subst $(obj)/,,$(@:.o=-y)))), $^)
- 
+
 quiet_cmd_link_multi-y = LD      $@
 cmd_link_multi-y = $(LD) $(ld_flags) -r -o $@ $(link_multi_deps) $(cmd_secanalysis)
 
diff --git a/scripts/Makefile.host b/scripts/Makefile.host
index 1ac414f..6689364 100644
--- a/scripts/Makefile.host
+++ b/scripts/Makefile.host
@@ -166,5 +166,4 @@ $(host-cshlib): $(obj)/%: $(host-cshobjs) FORCE
 	$(call if_changed,host-cshlib)
 
 targets += $(host-csingle)  $(host-cmulti) $(host-cobjs)\
-	   $(host-cxxmulti) $(host-cxxobjs) $(host-cshlib) $(host-cshobjs) 
-
+	   $(host-cxxmulti) $(host-cxxobjs) $(host-cshlib) $(host-cshobjs)
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index c24c5e8..326844c 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -27,7 +27,7 @@ lib-y := $(filter-out $(obj-y), $(sort $(lib-y) $(lib-m)))
 # ---------------------------------------------------------------------------
 # o if we encounter foo/ in $(obj-y), replace it by foo/built-in.o
 #   and add the directory to the list of dirs to descend into: $(subdir-y)
-# o if we encounter foo/ in $(obj-m), remove it from $(obj-m) 
+# o if we encounter foo/ in $(obj-m), remove it from $(obj-m)
 #   and add the directory to the list of dirs to descend into: $(subdir-m)
 
 # Determine modorder.
@@ -46,7 +46,7 @@ obj-m		:= $(filter-out %/, $(obj-m))
 
 subdir-ym	:= $(sort $(subdir-y) $(subdir-m))
 
-# if $(foo-objs) exists, foo.o is a composite object 
+# if $(foo-objs) exists, foo.o is a composite object
 multi-used-y := $(sort $(foreach m,$(obj-y), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))), $(m))))
 multi-used-m := $(sort $(foreach m,$(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))), $(m))))
 multi-used   := $(multi-used-y) $(multi-used-m)
@@ -91,7 +91,7 @@ obj-dirs	:= $(addprefix $(obj)/,$(obj-dirs))
 
 # These flags are needed for modversions and compiling, so we define them here
 # already
-# $(modname_flags) #defines KBUILD_MODNAME as the name of the module it will 
+# $(modname_flags) #defines KBUILD_MODNAME as the name of the module it will
 # end up in (or would, if it gets compiled in)
 # Note: Files that end up in two or more modules are compiled without the
 #       KBUILD_MODNAME definition. The reason is that any made-up name would
@@ -212,7 +212,7 @@ $(obj)/%: $(src)/%_shipped
 
 # Commands useful for building a boot image
 # ===========================================================================
-# 
+#
 #	Use as following:
 #
 #	target: source(s) FORCE
@@ -226,7 +226,7 @@ $(obj)/%: $(src)/%_shipped
 
 quiet_cmd_ld = LD      $@
 cmd_ld = $(LD) $(LDFLAGS) $(ldflags-y) $(LDFLAGS_$(@F)) \
-	       $(filter-out FORCE,$^) -o $@ 
+	       $(filter-out FORCE,$^) -o $@
 
 # Objcopy
 # ---------------------------------------------------------------------------
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c
index 078fe1d..b304068 100644
--- a/scripts/basic/fixdep.c
+++ b/scripts/basic/fixdep.c
@@ -409,10 +409,10 @@ static void print_deps(void)
 		exit(2);
 	}
 	if (fstat(fd, &st) < 0) {
-                fprintf(stderr, "fixdep: error fstat'ing depfile: ");
-                perror(depfile);
-                exit(2);
-        }
+		fprintf(stderr, "fixdep: error fstat'ing depfile: ");
+		perror(depfile);
+		exit(2);
+	}
 	if (st.st_size == 0) {
 		fprintf(stderr,"fixdep: %s is empty\n",depfile);
 		close(fd);
diff --git a/scripts/docproc.c b/scripts/docproc.c
index 2b69eaf..e267e62 100644
--- a/scripts/docproc.c
+++ b/scripts/docproc.c
@@ -154,7 +154,7 @@ int symfilecnt = 0;
 static void add_new_symbol(struct symfile *sym, char * symname)
 {
 	sym->symbollist =
-          realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *));
+	  realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *));
 	sym->symbollist[sym->symbolcnt++].name = strdup(symname);
 }
 
@@ -215,7 +215,7 @@ static void find_export_symbols(char * filename)
 			char *p;
 			char *e;
 			if (((p = strstr(line, "EXPORT_SYMBOL_GPL")) != NULL) ||
-                            ((p = strstr(line, "EXPORT_SYMBOL")) != NULL)) {
+			    ((p = strstr(line, "EXPORT_SYMBOL")) != NULL)) {
 				/* Skip EXPORT_SYMBOL{_GPL} */
 				while (isalnum(*p) || *p == '_')
 					p++;
@@ -291,28 +291,28 @@ static void extfunc(char * filename) { docfunctions(filename, FUNCTION);   }
 static void singfunc(char * filename, char * line)
 {
 	char *vec[200]; /* Enough for specific functions */
-        int i, idx = 0;
-        int startofsym = 1;
+	int i, idx = 0;
+	int startofsym = 1;
 	vec[idx++] = KERNELDOC;
 	vec[idx++] = DOCBOOK;
 	vec[idx++] = SHOWNOTFOUND;
 
-        /* Split line up in individual parameters preceded by FUNCTION */
-        for (i=0; line[i]; i++) {
-                if (isspace(line[i])) {
-                        line[i] = '\0';
-                        startofsym = 1;
-                        continue;
-                }
-                if (startofsym) {
-                        startofsym = 0;
-                        vec[idx++] = FUNCTION;
-                        vec[idx++] = &line[i];
-                }
-        }
+	/* Split line up in individual parameters preceded by FUNCTION */
+	for (i=0; line[i]; i++) {
+		if (isspace(line[i])) {
+			line[i] = '\0';
+			startofsym = 1;
+			continue;
+		}
+		if (startofsym) {
+			startofsym = 0;
+			vec[idx++] = FUNCTION;
+			vec[idx++] = &line[i];
+		}
+	}
 	for (i = 0; i < idx; i++) {
-        	if (strcmp(vec[i], FUNCTION))
-        		continue;
+		if (strcmp(vec[i], FUNCTION))
+			continue;
 		consume_symbol(vec[i + 1]);
 	}
 	vec[idx++] = filename;
@@ -460,14 +460,14 @@ static void parse_file(FILE *infile)
 					break;
 				case 'D':
 					while (*s && !isspace(*s)) s++;
-                                        *s = '\0';
-                                        symbolsonly(line+2);
-                                        break;
+					*s = '\0';
+					symbolsonly(line+2);
+					break;
 				case 'F':
 					/* filename */
 					while (*s && !isspace(*s)) s++;
 					*s++ = '\0';
-                                        /* function names */
+					/* function names */
 					while (isspace(*s))
 						s++;
 					singlefunctions(line +2, s);
@@ -515,11 +515,11 @@ int main(int argc, char *argv[])
 	}
 	/* Open file, exit on error */
 	infile = fopen(argv[2], "r");
-        if (infile == NULL) {
-                fprintf(stderr, "docproc: ");
-                perror(argv[2]);
-                exit(2);
-        }
+	if (infile == NULL) {
+		fprintf(stderr, "docproc: ");
+		perror(argv[2]);
+		exit(2);
+	}
 
 	if (strcmp("doc", argv[1]) == 0) {
 		/* Need to do this in two passes.
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 4/5] kbuild: Use relative path when possible
  2014-06-16  9:56 [U-Boot] [PATCH 0/5] Kbuild: sync with Linux 3.16-rc1 Masahiro Yamada
                   ` (2 preceding siblings ...)
  2014-06-16  9:56 ` [U-Boot] [PATCH 3/5] cosmetic: kbuild: clean-up coding style (sync with Linux 3.16-rc1) Masahiro Yamada
@ 2014-06-16  9:56 ` Masahiro Yamada
  2014-06-17 10:46   ` Masahiro Yamada
  2014-06-16  9:56 ` [U-Boot] [PATCH 5/5] scripts: objdiff: sync with Linux 3.16-rc1 Masahiro Yamada
  2014-06-18 17:49 ` [U-Boot] [PATCH 0/5] Kbuild: " Tom Rini
  5 siblings, 1 reply; 16+ messages in thread
From: Masahiro Yamada @ 2014-06-16  9:56 UTC (permalink / raw)
  To: u-boot

Import 3 useful commits by Michal Marek <mmarek@suse.cz>
from Linux 3.16-rc1.

  commit 9da0763bdd82572be243fcf5161734f11568960f
  kbuild: Use relative path when building in a subdir of the source tree

  commit 890676c65d699db3ad82e7dddd0cf8fb449031af
  kbuild: Use relative path when building in the source tree

  commit 7e1c04779efd51154baf652e653ceb24ce68939b
  kbuild: Use relative path for $(objtree)

mkconfig and tools/Makefile must be adjusted to use relative path
for srctree.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 Makefile       | 14 ++++++++++++--
 mkconfig       |  4 ++--
 tools/Makefile |  2 +-
 3 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 2116e9a..21c8bd9 100644
--- a/Makefile
+++ b/Makefile
@@ -153,8 +153,18 @@ else
 _all: modules
 endif
 
-srctree		:= $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR))
-objtree		:= $(CURDIR)
+ifeq ($(KBUILD_SRC),)
+        # building in the source tree
+        srctree := .
+else
+        ifeq ($(KBUILD_SRC)/,$(dir $(CURDIR)))
+                # building in a subdirectory of the source tree
+                srctree := ..
+        else
+                srctree := $(KBUILD_SRC)
+        endif
+endif
+objtree		:= .
 src		:= $(srctree)
 obj		:= $(objtree)
 
diff --git a/mkconfig b/mkconfig
index 2bf5897..7592d15 100755
--- a/mkconfig
+++ b/mkconfig
@@ -105,7 +105,7 @@ fi
 #
 if [ -n "$KBUILD_SRC" ] ; then
 	mkdir -p ${objtree}/include
-	LNPREFIX=${srctree}/arch/${arch}/include/asm/
+	LNPREFIX=$(cd $srctree; pwd)/arch/${arch}/include/asm/
 	cd ${objtree}/include
 	mkdir -p asm
 else
@@ -121,7 +121,7 @@ else
 fi
 
 if [ -z "$KBUILD_SRC" ] ; then
-	cd ${srctree}/include
+	cd ../../../include
 fi
 
 #
diff --git a/tools/Makefile b/tools/Makefile
index 0088c1a..c80f54f 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -153,7 +153,7 @@ HOSTCFLAGS_sha256.o := -pedantic
 #HOSTCFLAGS_mpc86x_clk.o := -pedantic
 
 quiet_cmd_wrap = WRAP    $@
-cmd_wrap = echo "\#include <$(srctree)/$(patsubst $(obj)/%,%,$@)>" >$@
+cmd_wrap = echo "\#include <../$(patsubst $(obj)/%,%,$@)>" >$@
 
 $(obj)/lib/%.c $(obj)/common/%.c:
 	$(call cmd,wrap)
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 5/5] scripts: objdiff: sync with Linux 3.16-rc1
  2014-06-16  9:56 [U-Boot] [PATCH 0/5] Kbuild: sync with Linux 3.16-rc1 Masahiro Yamada
                   ` (3 preceding siblings ...)
  2014-06-16  9:56 ` [U-Boot] [PATCH 4/5] kbuild: Use relative path when possible Masahiro Yamada
@ 2014-06-16  9:56 ` Masahiro Yamada
  2014-06-18 17:49 ` [U-Boot] [PATCH 0/5] Kbuild: " Tom Rini
  5 siblings, 0 replies; 16+ messages in thread
From: Masahiro Yamada @ 2014-06-16  9:56 UTC (permalink / raw)
  To: u-boot

Import scripts/objdiff improvements from Linux v3.16-rc1, which
consists of 7 commits written by me.

  commit 7fa0e6db3cedc9b70d68a4170f1352e2b1aa0f90
  scripts: objdiff: support directories for the augument of record command

  commit 8ac28bee76eec006aac5ba5c418878a607d53a9b
  scripts: objdiff: fix a comment

  commit 8b5d0f20d64f00ffd5685879f8eb3659379f5aaa
  scripts: objdiff: change the extension of disassembly from .o to .dis

  commit 18165efa8203a34d82f60a1831ea290e7304c654
  scripts: objdiff: improve path flexibility for record command

  commit 1ecc8e489abfdaa6d8d1689f7ff62fdf1adda30c
  scripts: objdiff: remove unnecessary code

  commit 5ab370e91af70d5f1b1dbaec78798a2ff236a2d5
  scripts: objdiff: direct error messages to stderr

  commit fd6e12423311697860f30d10398a0f9eb91977d2
  scripts: objdiff: get the path to .tmp_objdiff more simply

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 scripts/objdiff | 74 +++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 46 insertions(+), 28 deletions(-)

diff --git a/scripts/objdiff b/scripts/objdiff
index b3e4f10..62e51da 100755
--- a/scripts/objdiff
+++ b/scripts/objdiff
@@ -25,25 +25,47 @@
 #
 # Note: 'make mrproper' will also remove .tmp_objdiff
 
-GIT_DIR="`git rev-parse --git-dir`"
+SRCTREE=$(cd $(git rev-parse --show-toplevel 2>/dev/null); pwd)
 
-if [ -d "$GIT_DIR" ]; then
-	TMPD="${GIT_DIR%git}tmp_objdiff"
-
-	[ -d "$TMPD" ] || mkdir "$TMPD"
-else
-	echo "ERROR: git directory not found."
+if [ -z "$SRCTREE" ]; then
+	echo >&2 "ERROR: Not a git repository."
 	exit 1
 fi
 
+TMPD=$SRCTREE/.tmp_objdiff
+
 usage() {
-	echo "Usage: $0 <command> <args>"
-	echo "  record    <list of object files>"
-	echo "  diff      <commitA> <commitB>"
-	echo "  clean     all | <commit>"
+	echo >&2 "Usage: $0 <command> <args>"
+	echo >&2 "  record    <list of object files or directories>"
+	echo >&2 "  diff      <commitA> <commitB>"
+	echo >&2 "  clean     all | <commit>"
 	exit 1
 }
 
+get_output_dir() {
+	dir=${1%/*}
+
+	if [ "$dir" = "$1" ]; then
+		dir=.
+	fi
+
+	dir=$(cd $dir; pwd)
+
+	echo $TMPD/$CMT${dir#$SRCTREE}
+}
+
+do_objdump() {
+	dir=$(get_output_dir $1)
+	base=${1##*/}
+	dis=$dir/${base%.o}.dis
+
+	[ ! -d "$dir" ] && mkdir -p $dir
+
+	# remove addresses for a cleaner diff
+	# http://dummdida.tumblr.com/post/60924060451/binary-diff-between-libc-from-scientificlinux-and
+	$OBJDUMP -D $1 | sed "s/^[[:space:]]\+[0-9a-f]\+//" > $dis
+}
+
 dorecord() {
 	[ $# -eq 0 ] && usage
 
@@ -52,20 +74,16 @@ dorecord() {
 	CMT="`git rev-parse --short HEAD`"
 
 	OBJDUMP="${CROSS_COMPILE}objdump"
-	OBJDIFFD="$TMPD/$CMT"
-
-	[ ! -d "$OBJDIFFD" ] && mkdir -p "$OBJDIFFD"
 
-	for f in $FILES; do
-		dn="${f%/*}"
-		bn="${f##*/}"
-
-		[ ! -d "$OBJDIFFD/$dn" ] && mkdir -p "$OBJDIFFD/$dn"
-
-		# remove addresses for a more clear diff
-		# http://dummdida.tumblr.com/post/60924060451/binary-diff-between-libc-from-scientificlinux-and
-		$OBJDUMP -D "$f" | sed "s/^[[:space:]]\+[0-9a-f]\+//" \
-			>"$OBJDIFFD/$dn/$bn"
+	for d in $FILES; do
+		if [ -d "$d" ]; then
+			for f in $(find $d -name '*.o')
+			do
+				do_objdump $f
+			done
+		else
+			do_objdump $d
+		fi
 	done
 }
 
@@ -90,12 +108,12 @@ dodiff() {
 	DSTD="$TMPD/$DST"
 
 	if [ ! -d "$SRCD" ]; then
-		echo "ERROR: $SRCD doesn't exist"
+		echo >&2 "ERROR: $SRCD doesn't exist"
 		exit 1
 	fi
 
 	if [ ! -d "$DSTD" ]; then
-		echo "ERROR: $DSTD doesn't exist"
+		echo >&2 "ERROR: $DSTD doesn't exist"
 		exit 1
 	fi
 
@@ -114,7 +132,7 @@ doclean() {
 		if [ -d "$TMPD/$CMT" ]; then
 			rm -rf $TMPD/$CMT
 		else
-			echo "$CMT not found"
+			echo >&2 "$CMT not found"
 		fi
 	fi
 }
@@ -135,7 +153,7 @@ case "$1" in
 		doclean $*
 		;;
 	*)
-		echo "Unrecognized command '$1'"
+		echo >&2 "Unrecognized command '$1'"
 		exit 1
 		;;
 esac
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 2/5] kbuild: sync mixed targets handling with Linux 3.16-rc1
  2014-06-16  9:56 ` [U-Boot] [PATCH 2/5] kbuild: sync mixed targets handling with Linux 3.16-rc1 Masahiro Yamada
@ 2014-06-16 17:58   ` Jeroen Hofstee
  2014-06-17  1:42     ` Masahiro Yamada
  0 siblings, 1 reply; 16+ messages in thread
From: Jeroen Hofstee @ 2014-06-16 17:58 UTC (permalink / raw)
  To: u-boot

Hello Masahiro,

On ma, 2014-06-16 at 18:56 +0900, Masahiro Yamada wrote:
> "make %_config all" was supported for the first time in U-Boot:
>   commit 53bca5ab
>   kbuild: support simultaneous board configuration and "make all"
> 
> Surprisingly it had not been working in Linux Kernel for a long time.
> 
> So I sent back the patch to the Linux Kbuild community and it was
> accepted with a little code improvement, at commit 9319f453.
> 
> Now, you can do "make defconfig all" or "make %_defconfig all"
> in Linux too.
> 

There is some issue with this in current master I guess. I haven't
bothered too much, but I think the one liner cause gcc to be called even
if both compilers are set to clang. With a separate config and make step
I have never seen such behavior. I only noticed it on FreeBSD though
since gcc is not installed there and actually errors, so it might be
awk / sed related as well.

Anyway, perhaps rings a bell...

Regards,
Jeroen

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 2/5] kbuild: sync mixed targets handling with Linux 3.16-rc1
  2014-06-16 17:58   ` Jeroen Hofstee
@ 2014-06-17  1:42     ` Masahiro Yamada
  2014-06-17 18:45       ` Jeroen Hofstee
  0 siblings, 1 reply; 16+ messages in thread
From: Masahiro Yamada @ 2014-06-17  1:42 UTC (permalink / raw)
  To: u-boot


On Mon, 16 Jun 2014 19:58:28 +0200
Jeroen Hofstee <dasuboot@myspectrum.nl> wrote:

> Hello Masahiro,
> 
> On ma, 2014-06-16 at 18:56 +0900, Masahiro Yamada wrote:
> > "make %_config all" was supported for the first time in U-Boot:
> >   commit 53bca5ab
> >   kbuild: support simultaneous board configuration and "make all"
> > 
> > Surprisingly it had not been working in Linux Kernel for a long time.
> > 
> > So I sent back the patch to the Linux Kbuild community and it was
> > accepted with a little code improvement, at commit 9319f453.
> > 
> > Now, you can do "make defconfig all" or "make %_defconfig all"
> > in Linux too.
> > 
> 
> There is some issue with this in current master I guess. I haven't
> bothered too much, but I think the one liner cause gcc to be called even
> if both compilers are set to clang. With a separate config and make step
> I have never seen such behavior. I only noticed it on FreeBSD though
> since gcc is not installed there and actually errors, so it might be
> awk / sed related as well.
> 
> Anyway, perhaps rings a bell...


Could you tell me how to reproduce the problem?

As far as I tested on FreeBSD where gcc is not installed,
I do not see that problem.

This is my repeat steps.
It fails on the halfway, but at least Clang is used for both HOSTCC and CC.


$ uname -a
FreeBSD collie.diag.org 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
$ gcc -v
-bash: gcc: command not found
$ git describe
v2014.07-rc3-68-gd8a97f9
$ gmake HOSTCC=clang CC=clang mrproper 
$ gmake HOSTCC=clang CC=clang NO_SDL=1 sandbox_config  all
Configuring for sandbox board...
  GEN     include/autoconf.mk.dep
warning: unknown warning option '-Werror=date-time' [-Wunknown-warning-option]
1 warning generated.
  GEN     include/autoconf.mk
warning: unknown warning option '-Werror=date-time' [-Wunknown-warning-option]
1 warning generated.
  CHK     include/config/uboot.release
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  UPD     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  HOSTCC  scripts/basic/fixdep
  CC      lib/asm-offsets.s
warning: unknown warning option '-Werror=date-time' [-Wunknown-warning-option]
In file included from lib/asm-offsets.c:15:
In file included from include/common.h:20:
In file included from include/linux/bitops.h:110:
/usr/home/yamada/workspace/u-boot/arch/sandbox/include/asm/bitops.h:59:17: warning: variable 'flags' is uninitialized when used here [-Wuninitialized]
        local_irq_save(flags);
                       ^~~~~
/usr/home/yamada/workspace/u-boot/arch/sandbox/include/asm/bitops.h:56:21: note: initialize the variable 'flags' to silence this warning
        unsigned long flags;
                           ^
                            = 0
/usr/home/yamada/workspace/u-boot/arch/sandbox/include/asm/bitops.h:81:17: warning: variable 'flags' is uninitialized when used here [-Wuninitialized]
        local_irq_save(flags);
                       ^~~~~
/usr/home/yamada/workspace/u-boot/arch/sandbox/include/asm/bitops.h:78:21: note: initialize the variable 'flags' to silence this warning
        unsigned long flags;
                           ^
                            = 0
3 warnings generated.
  GEN     include/generated/generic-asm-offsets.h
  HOSTCC  tools/img2srec
  HOSTCC  tools/aisimage.o
  HOSTCC  tools/atmelimage.o
  WRAP    tools/common/image-fit.c
  HOSTCC  tools/common/image-fit.o
  WRAP    tools/common/image-sig.c
  HOSTCC  tools/common/image-sig.o
  WRAP    tools/common/image.c
  HOSTCC  tools/common/image.o
  HOSTCC  tools/default_image.o
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/fit_check_sign.o
  HOSTCC  tools/fit_common.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/fit_info.o
  HOSTCC  tools/gpimage-common.o
  HOSTCC  tools/gpimage.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/imagetool.o
  HOSTCC  tools/imximage.o
  HOSTCC  tools/kwbimage.o
  WRAP    tools/lib/crc32.c
  HOSTCC  tools/lib/crc32.o
  WRAP    tools/lib/fdtdec.c
  HOSTCC  tools/lib/fdtdec.o
  WRAP    tools/lib/libfdt/fdt.c
  HOSTCC  tools/lib/libfdt/fdt.o
  WRAP    tools/lib/libfdt/fdt_ro.c
  HOSTCC  tools/lib/libfdt/fdt_ro.o
  WRAP    tools/lib/libfdt/fdt_rw.c
  HOSTCC  tools/lib/libfdt/fdt_rw.o
  WRAP    tools/lib/libfdt/fdt_strerror.c
  HOSTCC  tools/lib/libfdt/fdt_strerror.o
  WRAP    tools/lib/libfdt/fdt_wip.c
  HOSTCC  tools/lib/libfdt/fdt_wip.o
  WRAP    tools/lib/md5.c
  HOSTCC  tools/lib/md5.o
  WRAP    tools/lib/rsa/rsa-checksum.c
  HOSTCC  tools/lib/rsa/rsa-checksum.o
In file included from tools/lib/rsa/rsa-checksum.c:1:
In file included from /usr/home/yamada/workspace/u-boot/lib/rsa/rsa-checksum.c:16:
In file included from /usr/home/yamada/workspace/u-boot/include/rsa.h:16:
/usr/home/yamada/workspace/u-boot/include/image.h:404:24: error: unknown type name 'time_t'
void genimg_print_time(time_t timestamp);
                       ^
/usr/home/yamada/workspace/u-boot/include/image.h:760:53: error: unknown type name 'time_t'
int fit_get_timestamp(const void *fit, int noffset, time_t *timestamp);
                                                    ^
/usr/home/yamada/workspace/u-boot/include/image.h:776:47: error: unknown type name 'time_t'
int fit_set_timestamp(void *fit, int noffset, time_t timestamp);
                                              ^
3 errors generated.
gmake[2]: *** [tools/lib/rsa/rsa-checksum.o] Error 1
gmake[1]: *** [tools] Error 2
gmake: *** [build-one-by-one] Error 2

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 4/5] kbuild: Use relative path when possible
  2014-06-16  9:56 ` [U-Boot] [PATCH 4/5] kbuild: Use relative path when possible Masahiro Yamada
@ 2014-06-17 10:46   ` Masahiro Yamada
  0 siblings, 0 replies; 16+ messages in thread
From: Masahiro Yamada @ 2014-06-17 10:46 UTC (permalink / raw)
  To: u-boot


On Mon, 16 Jun 2014 18:56:39 +0900
Masahiro Yamada <yamada.m@jp.panasonic.com> wrote:

> Import 3 useful commits by Michal Marek <mmarek@suse.cz>
> from Linux 3.16-rc1.
> 
>   commit 9da0763bdd82572be243fcf5161734f11568960f
>   kbuild: Use relative path when building in a subdir of the source tree
> 
>   commit 890676c65d699db3ad82e7dddd0cf8fb449031af
>   kbuild: Use relative path when building in the source tree
> 
>   commit 7e1c04779efd51154baf652e653ceb24ce68939b
>   kbuild: Use relative path for $(objtree)
> 
> mkconfig and tools/Makefile must be adjusted to use relative path
> for srctree.
> 
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>


Some regressions about these commits have been reported to linux-kbuild ML.

It might be too early to import them to U-boot, so I decided to postpone this patch.

I will change its status to RFC.


Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 2/5] kbuild: sync mixed targets handling with Linux 3.16-rc1
  2014-06-17  1:42     ` Masahiro Yamada
@ 2014-06-17 18:45       ` Jeroen Hofstee
  2014-06-20  2:17         ` Masahiro Yamada
  2014-06-20  2:20         ` Masahiro Yamada
  0 siblings, 2 replies; 16+ messages in thread
From: Jeroen Hofstee @ 2014-06-17 18:45 UTC (permalink / raw)
  To: u-boot

Hello Masahiro,

On 17-06-14 03:42, Masahiro Yamada wrote:
> On Mon, 16 Jun 2014 19:58:28 +0200
> Jeroen Hofstee <dasuboot@myspectrum.nl> wrote:
>
>> Hello Masahiro,
>>
>> On ma, 2014-06-16 at 18:56 +0900, Masahiro Yamada wrote:
>>> "make %_config all" was supported for the first time in U-Boot:
>>>    commit 53bca5ab
>>>    kbuild: support simultaneous board configuration and "make all"
>>>
>>> Surprisingly it had not been working in Linux Kernel for a long time.
>>>
>>> So I sent back the patch to the Linux Kbuild community and it was
>>> accepted with a little code improvement, at commit 9319f453.
>>>
>>> Now, you can do "make defconfig all" or "make %_defconfig all"
>>> in Linux too.
>>>
>> There is some issue with this in current master I guess. I haven't
>> bothered too much, but I think the one liner cause gcc to be called even
>> if both compilers are set to clang. With a separate config and make step
>> I have never seen such behavior. I only noticed it on FreeBSD though
>> since gcc is not installed there and actually errors, so it might be
>> awk / sed related as well.
>>
>> Anyway, perhaps rings a bell...
>
> Could you tell me how to reproduce the problem?
>
> As far as I tested on FreeBSD where gcc is not installed,
> I do not see that problem.
>
> This is my repeat steps.
> It fails on the halfway, but at least Clang is used for both HOSTCC and CC.

Weird, below is my build output on current master with some floating
patches to make the build succeed [1] (well I didn't send the time.h yet
since I don't understand how linux gets away with that at the moment)

As mentioned I have no clue why it fails and haven't looked into it.
Just noticed it didn't work.

[1] https://github.com/jhofstee/u-boot/tree/FreeBSD

Regards,
Jeroen

[jeroen at freebsd /usr/home/jeroen/u-boot]$ cc -v
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd11.0
Thread model: posix
Selected GCC installation:

[jeroen at freebsd /usr/home/jeroen/u-boot]$ gmake -v
GNU Make 3.82
Built for amd64-portbld-freebsd10.0
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


[jeroen at freebsd /usr/home/jeroen/u-boot]$ git branch
* FreeBSD
   master
[jeroen at freebsd /usr/home/jeroen/u-boot]$ rm -rf *
[jeroen at freebsd /usr/home/jeroen/u-boot]$ git branch
* FreeBSD
   master
[jeroen at freebsd /usr/home/jeroen/u-boot]$ git checkout -f
[jeroen at freebsd /usr/home/jeroen/u-boot]$ git describe
v2014.07-rc3-73-g9188205
[jeroen at freebsd /usr/home/jeroen/u-boot]$ uname -a
FreeBSD freebsd 11.0-CURRENT FreeBSD 11.0-CURRENT #0 0ed0329(master): 
Fri Jun  6 14:47:31 CEST 2014 root at freebsd:/usr/obj/usr/src/sys/GENERIC  
amd64
[jeroen at freebsd /usr/home/jeroen/u-boot]$ gmake CC="cc" HOSTCC="cc" V=1 
NO_SDL=1 sandbox_config tools
set -e; \
for i in sandbox_config tools; do \
     gmake -f /usr/home/jeroen/u-boot/Makefile $i; \
done
Configuring for sandbox board...
   cc -x c -DDO_DEPS_ONLY -M -Wall -Wstrict-prototypes 
-Wno-format-security -fno-builtin -ffreestanding -Os 
-fno-stack-protector -g -Wno-format-nonliteral   -D__KERNEL__ 
-DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE 
-DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL  
-pipe -Iinclude -I/usr/home/jeroen/u-boot/arch/sandbox/include  
-nostdinc -isystem /usr/lib/include -MQ include/autoconf.mk 
/usr/home/jeroen/u-boot/include/common.h > include/autoconf.mk.dep || rm 
include/autoconf.mk.dep
   cc -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin 
-ffreestanding -Os  -fno-stack-protector -g -Wno-format-nonliteral 
-D__KERNEL__   -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE 
-DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL  
-pipe -Iinclude -I/usr/home/jeroen/u-boot/arch/sandbox/include  
-nostdinc -isystem /usr/lib/include -DDO_DEPS_ONLY -dM 
/usr/home/jeroen/u-boot/include/common.h > include/autoconf.mk.tmp && 
sed -n -f /usr/home/jeroen/u-boot/tools/scripts/define2mk.sed 
include/autoconf.mk.tmp > include/autoconf.mk; rm include/autoconf.mk.tmp
gmake[1]: gcc: Command not found
gmake[1]: gcc: Command not found
gcc: not found
usage: dirname string [...]
set -e; : '  CHK     include/config/uboot.release'; mkdir -p 
include/config/;     echo "2014.07-rc3$(sh 
/usr/home/jeroen/u-boot/scripts/setlocalversion 
/usr/home/jeroen/u-boot)" < Makefile > include/config/uboot.release.tmp; 
if [ -r include/config/uboot.release ] && cmp -s 
include/config/uboot.release include/config/uboot.release.tmp; then rm 
-f include/config/uboot.release.tmp; else : '  UPD 
include/config/uboot.release'; mv -f include/config/uboot.release.tmp 
include/config/uboot.release; fi
gmake[1]: gcc: Command not found
set -e; : '  CHK     include/generated/version_autogenerated.h'; mkdir 
-p include/generated/;     (echo \#define PLAIN_VERSION 
\"2014.07-rc3-00073-g9188205\"; echo \#define U_BOOT_VERSION \"U-Boot \" 
PLAIN_VERSION; echo \#define CC_VERSION_STRING \"$(gcc --version | head 
-n 1)\"; echo \#define LD_VERSION_STRING \"$(ld --version | head -n 
1)\"; ) < include/config/uboot.release > 
include/generated/version_autogenerated.h.tmp; if [ -r 
include/generated/version_autogenerated.h ] && cmp -s 
include/generated/version_autogenerated.h 
include/generated/version_autogenerated.h.tmp; then rm -f 
include/generated/version_autogenerated.h.tmp; else : '  UPD 
include/generated/version_autogenerated.h'; mv -f 
include/generated/version_autogenerated.h.tmp 
include/generated/version_autogenerated.h; fi
gmake[1]: gcc: Command not found
gcc: not found
set -e; : '  CHK     include/generated/timestamp_autogenerated.h'; mkdir 
-p include/generated/;     (LC_ALL=C date +'#define U_BOOT_DATE "%b %d 
%C%y"'; LC_ALL=C date +'#define U_BOOT_TIME "%T"') < 
/usr/home/jeroen/u-boot/Makefile > 
include/generated/timestamp_autogenerated.h.tmp; if [ -r 
include/generated/timestamp_autogenerated.h ] && cmp -s 
include/generated/timestamp_autogenerated.h 
include/generated/timestamp_autogenerated.h.tmp; then rm -f 
include/generated/timestamp_autogenerated.h.tmp; else : '  UPD 
include/generated/timestamp_autogenerated.h'; mv -f 
include/generated/timestamp_autogenerated.h.tmp 
include/generated/timestamp_autogenerated.h; fi
gmake[1]: gcc: Command not found
gmake -f scripts/Makefile.build obj=scripts/basic
gmake[1]: gcc: Command not found
   gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer     -o scripts/basic/fixdep scripts/basic/fixdep.c
gcc: not found
gmake[2]: *** [scripts/basic/fixdep] Error 127
gmake[1]: *** [scripts_basic] Error 2
gmake: *** [build-one-by-one] Error 2



[jeroen at freebsd /usr/home/jeroen/u-boot]$ rm -rf *
[jeroen at freebsd /usr/home/jeroen/u-boot]$ git checkout -f
[jeroen at freebsd /usr/home/jeroen/u-boot]$ gmake CC="cc" HOSTCC="cc" V=1 
NO_SDL=1 sandbox_config
Configuring for sandbox board..
[jeroen at freebsd /usr/home/jeroen/u-boot]$ gmake CC="cc" HOSTCC="cc" V=1 
NO_SDL=1 tools
   cc -x c -DDO_DEPS_ONLY -M -Wall -Wstrict-prototypes 
-Wno-format-security -fno-builtin -ffreestanding -Os 
-fno-stack-protector -g -Wno-format-nonliteral   -D__KERNEL__ 
-DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE 
-DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL  
-pipe -Iinclude -I/usr/home/jeroen/u-boot/arch/sandbox/include  
-nostdinc -isystem /usr/lib/include -MQ include/autoconf.mk 
/usr/home/jeroen/u-boot/include/common.h > include/autoconf.mk.dep || rm 
include/autoconf.mk.dep
   cc -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin 
-ffreestanding -Os  -fno-stack-protector -g -Wno-format-nonliteral 
-D__KERNEL__   -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE 
-DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL  
-pipe -Iinclude -I/usr/home/jeroen/u-boot/arch/sandbox/include  
-nostdinc -isystem /usr/lib/include -DDO_DEPS_ONLY -dM 
/usr/home/jeroen/u-boot/include/common.h > include/autoconf.mk.tmp && 
sed -n -f /usr/home/jeroen/u-boot/tools/scripts/define2mk.sed 
include/autoconf.mk.tmp > include/autoconf.mk; rm include/autoconf.mk.tmp
set -e; : '  CHK     include/config/uboot.release'; mkdir -p 
include/config/;     echo "2014.07-rc3$(sh 
/usr/home/jeroen/u-boot/scripts/setlocalversion 
/usr/home/jeroen/u-boot)" < Makefile > include/config/uboot.release.tmp; 
if [ -r include/config/uboot.release ] && cmp -s 
include/config/uboot.release include/config/uboot.release.tmp; then rm 
-f include/config/uboot.release.tmp; else : '  UPD 
include/config/uboot.release'; mv -f include/config/uboot.release.tmp 
include/config/uboot.release; fi
set -e; : '  CHK     include/generated/version_autogenerated.h'; mkdir 
-p include/generated/;     (echo \#define PLAIN_VERSION 
\"2014.07-rc3-00073-g9188205\"; echo \#define U_BOOT_VERSION \"U-Boot \" 
PLAIN_VERSION; echo \#define CC_VERSION_STRING \"$(cc --version | head 
-n 1)\"; echo \#define LD_VERSION_STRING \"$(ld --version | head -n 
1)\"; ) < include/config/uboot.release > 
include/generated/version_autogenerated.h.tmp; if [ -r 
include/generated/version_autogenerated.h ] && cmp -s 
include/generated/version_autogenerated.h 
include/generated/version_autogenerated.h.tmp; then rm -f 
include/generated/version_autogenerated.h.tmp; else : '  UPD 
include/generated/version_autogenerated.h'; mv -f 
include/generated/version_autogenerated.h.tmp 
include/generated/version_autogenerated.h; fi
set -e; : '  CHK     include/generated/timestamp_autogenerated.h'; mkdir 
-p include/generated/;     (LC_ALL=C date +'#define U_BOOT_DATE "%b %d 
%C%y"'; LC_ALL=C date +'#define U_BOOT_TIME "%T"') < 
/usr/home/jeroen/u-boot/Makefile > 
include/generated/timestamp_autogenerated.h.tmp; if [ -r 
include/generated/timestamp_autogenerated.h ] && cmp -s 
include/generated/timestamp_autogenerated.h 
include/generated/timestamp_autogenerated.h.tmp; then rm -f 
include/generated/timestamp_autogenerated.h.tmp; else : '  UPD 
include/generated/timestamp_autogenerated.h'; mv -f 
include/generated/timestamp_autogenerated.h.tmp 
include/generated/timestamp_autogenerated.h; fi
gmake -f scripts/Makefile.build obj=scripts/basic
   cc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer     -o scripts/basic/fixdep scripts/basic/fixdep.c
rm -f .tmp_quiet_recordmcount
gmake -f scripts/Makefile.build obj=.
mkdir -p lib/
   cc -Wp,-MD,lib/.asm-offsets.s.d  -nostdinc -isystem /usr/lib/include 
-Iinclude -I/usr/home/jeroen/u-boot/arch/sandbox/include -D__KERNEL__ 
-DCONFIG_SYS_TEXT_BASE=0 -Wall -Wstrict-prototypes -Wno-format-security 
-fno-builtin -ffreestanding -Os -fno-stack-protector -g 
-Wno-format-nonliteral -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE 
-DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL 
-pipe -DDO_DEPS_ONLY -D"KBUILD_STR(s)=#s" 
-D"KBUILD_BASENAME=KBUILD_STR(asm_offsets)" 
-D"KBUILD_MODNAME=KBUILD_STR(asm_offsets)"  -fverbose-asm -S -o 
lib/asm-offsets.s lib/asm-offsets.c
mkdir -p include/generated/
       (set -e; echo "#ifndef __GENERIC_ASM_OFFSETS_H__"; echo "#define 
__GENERIC_ASM_OFFSETS_H__"; echo "/*"; echo " * DO NOT MODIFY."; echo " 
*"; echo " * This file was generated by Kbuild"; echo " *"; echo " */"; 
echo ""; sed -ne "s:[[:space:]]*\.ascii[[:space:]]*\"\(.*\)\":\1:; 
/^->/{s:->#\(.*\):/* \1 */:; s:^->\([^ ]*\) [\$#]*\([-0-9]*\) 
\(.*\):#define \1 \2 /* \3 */:; s:^->\([^ ]*\) [\$#]*\([^ ]*\) 
\(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" lib/asm-offsets.s; echo ""; 
echo "#endif" ) > include/generated/generic-asm-offsets.h
gmake -f scripts/Makefile.build obj=tools
   cc -Wp,-MD,tools/.img2srec.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE -pedantic -o tools/img2srec tools/img2srec.c
   cc -Wp,-MD,tools/.aisimage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/aisimage.o tools/aisimage.c
   cc -Wp,-MD,tools/.atmelimage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/atmelimage.o tools/atmelimage.c
   echo "#include </usr/home/jeroen/u-boot/common/image-fit.c>" 
 >tools/common/image-fit.c
   cc -Wp,-MD,tools/common/.image-fit.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/common/image-fit.o tools/common/image-fit.c
   echo "#include </usr/home/jeroen/u-boot/common/image-sig.c>" 
 >tools/common/image-sig.c
   cc -Wp,-MD,tools/common/.image-sig.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/common/image-sig.o tools/common/image-sig.c
   echo "#include </usr/home/jeroen/u-boot/common/image.c>" 
 >tools/common/image.c
   cc -Wp,-MD,tools/common/.image.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/common/image.o tools/common/image.c
   cc -Wp,-MD,tools/.default_image.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/default_image.o tools/default_image.c
   cc -Wp,-MD,tools/.dumpimage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/dumpimage.o tools/dumpimage.c
   cc -Wp,-MD,tools/.fit_check_sign.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/fit_check_sign.o tools/fit_check_sign.c
   cc -Wp,-MD,tools/.fit_common.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/fit_common.o tools/fit_common.c
   cc -Wp,-MD,tools/.fit_image.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/fit_image.o tools/fit_image.c
   cc -Wp,-MD,tools/.fit_info.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/fit_info.o tools/fit_info.c
   cc -Wp,-MD,tools/.gpimage-common.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/gpimage-common.o tools/gpimage-common.c
   cc -Wp,-MD,tools/.gpimage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/gpimage.o tools/gpimage.c
   cc -Wp,-MD,tools/.image-host.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/image-host.o tools/image-host.c
   cc -Wp,-MD,tools/.imagetool.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/imagetool.o tools/imagetool.c
   cc -Wp,-MD,tools/.imximage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/imximage.o tools/imximage.c
   cc -Wp,-MD,tools/.kwbimage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/kwbimage.o tools/kwbimage.c
   echo "#include </usr/home/jeroen/u-boot/lib/crc32.c>" >tools/lib/crc32.c
   cc -Wp,-MD,tools/lib/.crc32.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE -pedantic -c -o tools/lib/crc32.o tools/lib/crc32.c
   echo "#include </usr/home/jeroen/u-boot/lib/fdtdec.c>" 
 >tools/lib/fdtdec.c
   cc -Wp,-MD,tools/lib/.fdtdec.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/lib/fdtdec.o tools/lib/fdtdec.c
   echo "#include </usr/home/jeroen/u-boot/lib/libfdt/fdt.c>" 
 >tools/lib/libfdt/fdt.c
   cc -Wp,-MD,tools/lib/libfdt/.fdt.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt.c
   echo "#include </usr/home/jeroen/u-boot/lib/libfdt/fdt_ro.c>" 
 >tools/lib/libfdt/fdt_ro.c
   cc -Wp,-MD,tools/lib/libfdt/.fdt_ro.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_ro.c
   echo "#include </usr/home/jeroen/u-boot/lib/libfdt/fdt_rw.c>" 
 >tools/lib/libfdt/fdt_rw.c
   cc -Wp,-MD,tools/lib/libfdt/.fdt_rw.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_rw.c
   echo "#include </usr/home/jeroen/u-boot/lib/libfdt/fdt_strerror.c>" 
 >tools/lib/libfdt/fdt_strerror.c
   cc -Wp,-MD,tools/lib/libfdt/.fdt_strerror.o.d -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -DCONFIG_FIT_SIGNATURE 
-include /usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_strerror.o 
tools/lib/libfdt/fdt_strerror.c
   echo "#include </usr/home/jeroen/u-boot/lib/libfdt/fdt_wip.c>" 
 >tools/lib/libfdt/fdt_wip.c
   cc -Wp,-MD,tools/lib/libfdt/.fdt_wip.o.d -Wall -Wstrict-prototypes 
-O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_wip.o tools/lib/libfdt/fdt_wip.c
   echo "#include </usr/home/jeroen/u-boot/lib/md5.c>" >tools/lib/md5.c
   cc -Wp,-MD,tools/lib/.md5.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE -pedantic -c -o tools/lib/md5.o tools/lib/md5.c
   echo "#include </usr/home/jeroen/u-boot/lib/rsa/rsa-checksum.c>" 
 >tools/lib/rsa/rsa-checksum.c
   cc -Wp,-MD,tools/lib/rsa/.rsa-checksum.o.d -Wall -Wstrict-prototypes 
-O2 -fomit-frame-pointer -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/lib/rsa/rsa-checksum.o 
tools/lib/rsa/rsa-checksum.c
   echo "#include </usr/home/jeroen/u-boot/lib/rsa/rsa-sign.c>" 
 >tools/lib/rsa/rsa-sign.c
   cc -Wp,-MD,tools/lib/rsa/.rsa-sign.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-sign.c
In file included from tools/lib/rsa/rsa-sign.c:1:
/usr/home/jeroen/u-boot/lib/rsa/rsa-sign.c:77:6: warning: variable 'ret' 
is used uninitialized whenever 'if' condition is true 
[-Wsometimes-uninitialized]
         if (!rsa) {
             ^~~~
/usr/home/jeroen/u-boot/lib/rsa/rsa-sign.c:94:9: note: uninitialized use 
occurs here
         return ret;
                ^~~
/usr/home/jeroen/u-boot/lib/rsa/rsa-sign.c:77:2: note: remove the 'if' 
if its condition is always false
         if (!rsa) {
         ^~~~~~~~~~~
/usr/home/jeroen/u-boot/lib/rsa/rsa-sign.c:48:9: note: initialize the 
variable 'ret' to silence this warning
         int ret;
                ^
                 = 0
1 warning generated.
   echo "#include </usr/home/jeroen/u-boot/lib/rsa/rsa-verify.c>" 
 >tools/lib/rsa/rsa-verify.c
   cc -Wp,-MD,tools/lib/rsa/.rsa-verify.o.d -Wall -Wstrict-prototypes 
-O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-verify.c
In file included from tools/lib/rsa/rsa-verify.c:1:
/usr/home/jeroen/u-boot/lib/rsa/rsa-verify.c:59:27: warning: comparison 
of unsigned expression >= 0 is always true [-Wtautological-compare]
         for (i = key->len - 1; i >= 0; i--) {
                                ~ ^  ~
1 warning generated.
   echo "#include </usr/home/jeroen/u-boot/lib/sha1.c>" >tools/lib/sha1.c
   cc -Wp,-MD,tools/lib/.sha1.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE -pedantic -c -o tools/lib/sha1.o tools/lib/sha1.c
   echo "#include </usr/home/jeroen/u-boot/lib/sha256.c>" 
 >tools/lib/sha256.c
   cc -Wp,-MD,tools/lib/.sha256.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE -pedantic -c -o tools/lib/sha256.o tools/lib/sha256.c
   cc -Wp,-MD,tools/.mkenvimage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/mkenvimage.o tools/mkenvimage.c
   cc -Wp,-MD,tools/.mkimage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/mkimage.o tools/mkimage.c
   cc -Wp,-MD,tools/.mxsimage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/mxsimage.o tools/mxsimage.c
   cc -Wp,-MD,tools/.omapimage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/omapimage.o tools/omapimage.c
   cc -Wp,-MD,tools/.os_support.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/os_support.o tools/os_support.c
   cc -Wp,-MD,tools/.pbl_crc32.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/pbl_crc32.o tools/pbl_crc32.c
   cc -Wp,-MD,tools/.pblimage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/pblimage.o tools/pblimage.c
   cc -Wp,-MD,tools/.ublimage.o.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -c -o tools/ublimage.o tools/ublimage.c
   cc  -o tools/mkenvimage tools/mkenvimage.o tools/os_support.o 
tools/lib/crc32.o
   cc  -o tools/dumpimage tools/aisimage.o tools/atmelimage.o 
tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o 
tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o 
tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o 
tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o 
tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o 
tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o 
tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o 
tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o 
tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o 
tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o 
tools/dumpimage.o  -lssl -lcrypto
   cc  -o tools/mkimage tools/aisimage.o tools/atmelimage.o 
tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o 
tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o 
tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o 
tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o 
tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o 
tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o 
tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o 
tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o 
tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o 
tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o tools/mkimage.o  
-lssl -lcrypto
   cc  -o tools/fit_info tools/aisimage.o tools/atmelimage.o 
tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o 
tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o 
tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o 
tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o 
tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o 
tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o 
tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o 
tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o 
tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o 
tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o 
tools/fit_info.o  -lssl -lcrypto
   cc  -o tools/fit_check_sign tools/aisimage.o tools/atmelimage.o 
tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o 
tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o 
tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o 
tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o 
tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o 
tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o 
tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o 
tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o 
tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o 
tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o 
tools/fit_check_sign.o  -lssl -lcrypto
   cc -Wp,-MD,tools/.proftool.d -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include 
/usr/home/jeroen/u-boot/include/libfdt_env.h -idirafterinclude 
-idirafter/usr/home/jeroen/u-boot/arch/sandbox/include 
-I/usr/home/jeroen/u-boot/lib/libfdt -I/usr/home/jeroen/u-boot/tools 
-DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES 
-D_GNU_SOURCE  -o tools/proftool tools/proftool.c

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/5] Kbuild: sync with Linux 3.16-rc1
  2014-06-16  9:56 [U-Boot] [PATCH 0/5] Kbuild: sync with Linux 3.16-rc1 Masahiro Yamada
                   ` (4 preceding siblings ...)
  2014-06-16  9:56 ` [U-Boot] [PATCH 5/5] scripts: objdiff: sync with Linux 3.16-rc1 Masahiro Yamada
@ 2014-06-18 17:49 ` Tom Rini
  2014-06-19  8:26   ` Masahiro Yamada
  5 siblings, 1 reply; 16+ messages in thread
From: Tom Rini @ 2014-06-18 17:49 UTC (permalink / raw)
  To: u-boot

On Mon, Jun 16, 2014 at 06:56:35PM +0900, Masahiro Yamada wrote:

> 
> The merge window for Linux 3.16 is closed and Linux 3.16-rc1 is out now.
> 
> During the merge window, various Kbuild-related updates were merged into
> the upstream.
> 
> This series imports them to U-Boot.

I see you saw there's problems been reported and have moved this to RFC.
My thoughts on this right now are that as a rule of thumb we should:
1) If our merge window and kernel merge window line up (say -rc1 kernel
came out, and we are -rc1 or haven't yet snapped -rc1), sync up, and
stay in sync to release on the kernel side (as close as possible)
2) If our merge windows aren't in sync, just stick with kernel release.

Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140618/299c6962/attachment.pgp>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/5] Kbuild: sync with Linux 3.16-rc1
  2014-06-18 17:49 ` [U-Boot] [PATCH 0/5] Kbuild: " Tom Rini
@ 2014-06-19  8:26   ` Masahiro Yamada
  2014-06-20 15:54     ` Tom Rini
  0 siblings, 1 reply; 16+ messages in thread
From: Masahiro Yamada @ 2014-06-19  8:26 UTC (permalink / raw)
  To: u-boot

Hi Tom,


On Wed, 18 Jun 2014 13:49:35 -0400
Tom Rini <trini@ti.com> wrote:

> On Mon, Jun 16, 2014 at 06:56:35PM +0900, Masahiro Yamada wrote:
> 
> > 
> > The merge window for Linux 3.16 is closed and Linux 3.16-rc1 is out now.
> > 
> > During the merge window, various Kbuild-related updates were merged into
> > the upstream.
> > 
> > This series imports them to U-Boot.
> 
> I see you saw there's problems been reported and have moved this to RFC.
> My thoughts on this right now are that as a rule of thumb we should:
> 1) If our merge window and kernel merge window line up (say -rc1 kernel
> came out, and we are -rc1 or haven't yet snapped -rc1), sync up, and
> stay in sync to release on the kernel side (as close as possible)
> 2) If our merge windows aren't in sync, just stick with kernel release.
> 

I understand the rule.

But can I still request to apply only this one?
http://patchwork.ozlabs.org/patch/359996/

It is purely cosmetic and I am really sure it is safe.


Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 2/5] kbuild: sync mixed targets handling with Linux 3.16-rc1
  2014-06-17 18:45       ` Jeroen Hofstee
@ 2014-06-20  2:17         ` Masahiro Yamada
  2014-06-20  2:20         ` Masahiro Yamada
  1 sibling, 0 replies; 16+ messages in thread
From: Masahiro Yamada @ 2014-06-20  2:17 UTC (permalink / raw)
  To: u-boot

Hi Jeroen,

On Tue, 17 Jun 2014 20:45:05 +0200
Jeroen Hofstee <dasuboot@myspectrum.nl> wrote:

> >> There is some issue with this in current master I guess. I haven't
> >> bothered too much, but I think the one liner cause gcc to be called even
> >> if both compilers are set to clang. With a separate config and make step
> >> I have never seen such behavior. I only noticed it on FreeBSD though
> >> since gcc is not installed there and actually errors, so it might be
> >> awk / sed related as well.
> >>
> >> Anyway, perhaps rings a bell...
> >
> > Could you tell me how to reproduce the problem?
> >
> > As far as I tested on FreeBSD where gcc is not installed,
> > I do not see that problem.
> >
> > This is my repeat steps.
> > It fails on the halfway, but at least Clang is used for both HOSTCC and CC.
> 
> Weird, below is my build output on current master with some floating
> patches to make the build succeed [1] (well I didn't send the time.h yet
> since I don't understand how linux gets away with that at the moment)
> 
> As mentioned I have no clue why it fails and haven't looked into it.
> Just noticed it didn't work.
> 
> [1] https://github.com/jhofstee/u-boot/tree/FreeBSD
> 



I followd the same steps as you did,
using your GitHub repository.

In my test, gcc was not called during the build.


My log is as follows:


$ git clone  git at github.com:jhofstee/u-boot.git u-boot-bsd
$ cd u-boot-bsd
$ git checkout -b FreeBSD origin/FreeBSD
$ git branch
* FreeBSD
   master
$ git rev-parse HEAD
91882055567ee0c5581ee7c5b9e707dd5ad99142
$ uname -a
FreeBSD collie.diag.org 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
$ gcc -v
-bash: gcc: command not found
$ cc -v
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix
$ gmake -v
GNU Make 3.82
Built for amd64-portbld-freebsd10.0
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ gmake CC="cc" HOSTCC="cc" V=1 NO_SDL=1 sandbox_config tools
set -e; \
for i in sandbox_config tools; do \
	gmake -f /usr/home/yamada/workspace/u-boot-bsd/Makefile $i; \
done
Configuring for sandbox board...
  cc -x c -DDO_DEPS_ONLY -M -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os  -fno-stack-protector -g -Wno-format-nonliteral   -D__KERNEL__   -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL  -pipe -Iinclude  -I/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include  -nostdinc -isystem /usr/lib/include -MQ include/autoconf.mk /usr/home/yamada/workspace/u-boot-bsd/include/common.h > include/autoconf.mk.dep || rm include/autoconf.mk.dep
  cc -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os  -fno-stack-protector -g -Wno-format-nonliteral   -D__KERNEL__   -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL  -pipe -Iinclude  -I/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include  -nostdinc -isystem /usr/lib/include -DDO_DEPS_ONLY -dM /usr/home/yamada/workspace/u-boot-bsd/include/common.h > include/autoconf.mk.tmp && sed -n -f /usr/home/yamada/workspace/u-boot-bsd/tools/scripts/define2mk.sed include/autoconf.mk.tmp > include/autoconf.mk; rm include/autoconf.mk.tmp
set -e; : '  CHK     include/config/uboot.release'; mkdir -p include/config/; 	echo "2014.07-rc3$(sh /usr/home/yamada/workspace/u-boot-bsd/scripts/setlocalversion /usr/home/yamada/workspace/u-boot-bsd)" < Makefile > include/config/uboot.release.tmp; if [ -r include/config/uboot.release ] && cmp -s include/config/uboot.release include/config/uboot.release.tmp; then rm -f include/config/uboot.release.tmp; else : '  UPD     include/config/uboot.release'; mv -f include/config/uboot.release.tmp include/config/uboot.release; fi
set -e; : '  CHK     include/generated/version_autogenerated.h'; mkdir -p include/generated/; 	(echo \#define PLAIN_VERSION \"2014.07-rc3-g9188205\"; echo \#define U_BOOT_VERSION \"U-Boot \" PLAIN_VERSION; echo \#define CC_VERSION_STRING \"$(cc --version | head -n 1)\"; echo \#define LD_VERSION_STRING \"$(ld --version | head -n 1)\"; ) < include/config/uboot.release > include/generated/version_autogenerated.h.tmp; if [ -r include/generated/version_autogenerated.h ] && cmp -s include/generated/version_autogenerated.h include/generated/version_autogenerated.h.tmp; then rm -f include/generated/version_autogenerated.h.tmp; else : '  UPD     include/generated/version_autogenerated.h'; mv -f include/generated/version_autogenerated.h.tmp include/generated/version_autogenerated.h; fi
set -e; : '  CHK     include/generated/timestamp_autogenerated.h'; mkdir -p include/generated/; 	(LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; LC_ALL=C date +'#define U_BOOT_TIME "%T"') < /usr/home/yamada/workspace/u-boot-bsd/Makefile > include/generated/timestamp_autogenerated.h.tmp; if [ -r include/generated/timestamp_autogenerated.h ] && cmp -s include/generated/timestamp_autogenerated.h include/generated/timestamp_autogenerated.h.tmp; then rm -f include/generated/timestamp_autogenerated.h.tmp; else : '  UPD     include/generated/timestamp_autogenerated.h'; mv -f include/generated/timestamp_autogenerated.h.tmp include/generated/timestamp_autogenerated.h; fi
gmake -f scripts/Makefile.build obj=scripts/basic
  cc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer     -o scripts/basic/fixdep scripts/basic/fixdep.c  
rm -f .tmp_quiet_recordmcount
gmake -f scripts/Makefile.build obj=.
mkdir -p lib/
  cc -Wp,-MD,lib/.asm-offsets.s.d  -nostdinc -isystem /usr/lib/include -Iinclude  -I/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0 -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -g -Wno-format-nonliteral -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL -pipe -DDO_DEPS_ONLY    -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(asm_offsets)"  -D"KBUILD_MODNAME=KBUILD_STR(asm_offsets)"  -fverbose-asm -S -o lib/asm-offsets.s lib/asm-offsets.c
mkdir -p include/generated/
  	(set -e; echo "#ifndef __GENERIC_ASM_OFFSETS_H__"; echo "#define __GENERIC_ASM_OFFSETS_H__"; echo "/*"; echo " * DO NOT MODIFY."; echo " *"; echo " * This file was generated by Kbuild"; echo " *"; echo " */"; echo ""; sed -ne 	"s:[[:space:]]*\.ascii[[:space:]]*\"\(.*\)\":\1:; /^->/{s:->#\(.*\):/* \1 */:; s:^->\([^ ]*\) [\$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; s:^->\([^ ]*\) [\$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" lib/asm-offsets.s; echo ""; echo "#endif" ) > include/generated/generic-asm-offsets.h
gmake -f scripts/Makefile.build obj=tools
  cc -Wp,-MD,tools/.img2srec.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -pedantic -o tools/img2srec tools/img2srec.c  
  cc -Wp,-MD,tools/.aisimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/aisimage.o tools/aisimage.c
  cc -Wp,-MD,tools/.atmelimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/atmelimage.o tools/atmelimage.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/common/image-fit.c>" >tools/common/image-fit.c
  cc -Wp,-MD,tools/common/.image-fit.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/common/image-fit.o tools/common/image-fit.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/common/image-sig.c>" >tools/common/image-sig.c
  cc -Wp,-MD,tools/common/.image-sig.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/common/image-sig.o tools/common/image-sig.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/common/image.c>" >tools/common/image.c
  cc -Wp,-MD,tools/common/.image.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/common/image.o tools/common/image.c
  cc -Wp,-MD,tools/.default_image.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/default_image.o tools/default_image.c
  cc -Wp,-MD,tools/.dumpimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/dumpimage.o tools/dumpimage.c
  cc -Wp,-MD,tools/.fit_check_sign.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/fit_check_sign.o tools/fit_check_sign.c
  cc -Wp,-MD,tools/.fit_common.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/fit_common.o tools/fit_common.c
  cc -Wp,-MD,tools/.fit_image.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/fit_image.o tools/fit_image.c
  cc -Wp,-MD,tools/.fit_info.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/fit_info.o tools/fit_info.c
  cc -Wp,-MD,tools/.gpimage-common.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/gpimage-common.o tools/gpimage-common.c
  cc -Wp,-MD,tools/.gpimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/gpimage.o tools/gpimage.c
  cc -Wp,-MD,tools/.image-host.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/image-host.o tools/image-host.c
  cc -Wp,-MD,tools/.imagetool.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/imagetool.o tools/imagetool.c
  cc -Wp,-MD,tools/.imximage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/imximage.o tools/imximage.c
  cc -Wp,-MD,tools/.kwbimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/kwbimage.o tools/kwbimage.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/crc32.c>" >tools/lib/crc32.c
  cc -Wp,-MD,tools/lib/.crc32.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -pedantic -c -o tools/lib/crc32.o tools/lib/crc32.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/fdtdec.c>" >tools/lib/fdtdec.c
  cc -Wp,-MD,tools/lib/.fdtdec.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/fdtdec.o tools/lib/fdtdec.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/libfdt/fdt.c>" >tools/lib/libfdt/fdt.c
  cc -Wp,-MD,tools/lib/libfdt/.fdt.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/libfdt/fdt_ro.c>" >tools/lib/libfdt/fdt_ro.c
  cc -Wp,-MD,tools/lib/libfdt/.fdt_ro.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_ro.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/libfdt/fdt_rw.c>" >tools/lib/libfdt/fdt_rw.c
  cc -Wp,-MD,tools/lib/libfdt/.fdt_rw.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_rw.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/libfdt/fdt_strerror.c>" >tools/lib/libfdt/fdt_strerror.c
  cc -Wp,-MD,tools/lib/libfdt/.fdt_strerror.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_strerror.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/libfdt/fdt_wip.c>" >tools/lib/libfdt/fdt_wip.c
  cc -Wp,-MD,tools/lib/libfdt/.fdt_wip.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/libfdt/fdt_wip.o tools/lib/libfdt/fdt_wip.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/md5.c>" >tools/lib/md5.c
  cc -Wp,-MD,tools/lib/.md5.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -pedantic -c -o tools/lib/md5.o tools/lib/md5.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-checksum.c>" >tools/lib/rsa/rsa-checksum.c
  cc -Wp,-MD,tools/lib/rsa/.rsa-checksum.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/rsa/rsa-checksum.o tools/lib/rsa/rsa-checksum.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-sign.c>" >tools/lib/rsa/rsa-sign.c
  cc -Wp,-MD,tools/lib/rsa/.rsa-sign.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-sign.c
In file included from tools/lib/rsa/rsa-sign.c:1:
/usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-sign.c:77:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (!rsa) {
            ^~~~
/usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-sign.c:94:9: note: uninitialized use occurs here
        return ret;
               ^~~
/usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-sign.c:77:2: note: remove the 'if' if its condition is always false
        if (!rsa) {
        ^~~~~~~~~~~
/usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-sign.c:48:9: note: initialize the variable 'ret' to silence this warning
        int ret;
               ^
                = 0
1 warning generated.
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-verify.c>" >tools/lib/rsa/rsa-verify.c
  cc -Wp,-MD,tools/lib/rsa/.rsa-verify.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-verify.c
In file included from tools/lib/rsa/rsa-verify.c:1:
/usr/home/yamada/workspace/u-boot-bsd/lib/rsa/rsa-verify.c:59:27: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
        for (i = key->len - 1; i >= 0; i--) {
                               ~ ^  ~
1 warning generated.
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/sha1.c>" >tools/lib/sha1.c
  cc -Wp,-MD,tools/lib/.sha1.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -pedantic -c -o tools/lib/sha1.o tools/lib/sha1.c
  echo "#include </usr/home/yamada/workspace/u-boot-bsd/lib/sha256.c>" >tools/lib/sha256.c
  cc -Wp,-MD,tools/lib/.sha256.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -pedantic -c -o tools/lib/sha256.o tools/lib/sha256.c
  cc -Wp,-MD,tools/.mkenvimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/mkenvimage.o tools/mkenvimage.c
  cc -Wp,-MD,tools/.mkimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/mkimage.o tools/mkimage.c
  cc -Wp,-MD,tools/.mxsimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/mxsimage.o tools/mxsimage.c
  cc -Wp,-MD,tools/.omapimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/omapimage.o tools/omapimage.c
  cc -Wp,-MD,tools/.os_support.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/os_support.o tools/os_support.c
  cc -Wp,-MD,tools/.pbl_crc32.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/pbl_crc32.o tools/pbl_crc32.c
  cc -Wp,-MD,tools/.pblimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/pblimage.o tools/pblimage.c
  cc -Wp,-MD,tools/.ublimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -c -o tools/ublimage.o tools/ublimage.c
  cc  -o tools/mkenvimage tools/mkenvimage.o tools/os_support.o tools/lib/crc32.o  
  cc  -o tools/dumpimage tools/aisimage.o tools/atmelimage.o tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o tools/dumpimage.o  -lssl -lcrypto
  cc  -o tools/mkimage tools/aisimage.o tools/atmelimage.o tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o tools/mkimage.o  -lssl -lcrypto
  cc  -o tools/fit_info tools/aisimage.o tools/atmelimage.o tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o tools/fit_info.o  -lssl -lcrypto
  cc  -o tools/fit_check_sign tools/aisimage.o tools/atmelimage.o tools/common/image-sig.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/gpimage.o tools/gpimage-common.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o tools/lib/md5.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_wip.o tools/lib/rsa/rsa-sign.o tools/lib/rsa/rsa-verify.o tools/lib/rsa/rsa-checksum.o tools/fit_check_sign.o  -lssl -lcrypto
  cc -Wp,-MD,tools/.proftool.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer   -DCONFIG_FIT_SIGNATURE -include /usr/home/yamada/workspace/u-boot-bsd/include/libfdt_env.h -idirafterinclude -idirafter/usr/home/yamada/workspace/u-boot-bsd/arch/sandbox/include -I/usr/home/yamada/workspace/u-boot-bsd/lib/libfdt -I/usr/home/yamada/workspace/u-boot-bsd/tools -DCONFIG_SYS_TEXT_BASE=0 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE  -o tools/proftool tools/proftool.c  




Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 2/5] kbuild: sync mixed targets handling with Linux 3.16-rc1
  2014-06-17 18:45       ` Jeroen Hofstee
  2014-06-20  2:17         ` Masahiro Yamada
@ 2014-06-20  2:20         ` Masahiro Yamada
  1 sibling, 0 replies; 16+ messages in thread
From: Masahiro Yamada @ 2014-06-20  2:20 UTC (permalink / raw)
  To: u-boot

Hi Jeroen,


On Tue, 17 Jun 2014 20:45:05 +0200
Jeroen Hofstee <dasuboot@myspectrum.nl> wrote:

> [jeroen at freebsd /usr/home/jeroen/u-boot]$ gmake CC="cc" HOSTCC="cc" V=1 NO_SDL=1 sandbox_config tools
> set -e; \
> for i in sandbox_config tools; do \
>      gmake -f /usr/home/jeroen/u-boot/Makefile $i; \
> done
> Configuring for sandbox board...
>    cc -x c -DDO_DEPS_ONLY -M -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -g -Wno-format-nonliteral   -D__KERNEL__ -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL  -pipe -Iinclude -I/usr/home/jeroen/u-boot/arch/sandbox/include  -nostdinc -isystem /usr/lib/include -MQ include/autoconf.mk /usr/home/jeroen/u-boot/include/common.h > include/autoconf.mk.dep || rm include/autoconf.mk.dep
>    cc -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os  -fno-stack-protector -g -Wno-format-nonliteral -D__KERNEL__   -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD -DSANDBOX_NO_SDL  -pipe -Iinclude -I/usr/home/jeroen/u-boot/arch/sandbox/include  -nostdinc -isystem /usr/lib/include -DDO_DEPS_ONLY -dM /usr/home/jeroen/u-boot/include/common.h > include/autoconf.mk.tmp && sed -n -f /usr/home/jeroen/u-boot/tools/scripts/define2mk.sed include/autoconf.mk.tmp > include/autoconf.mk; rm include/autoconf.mk.tmp
> gmake[1]: gcc: Command not found
> gmake[1]: gcc: Command not found
> gcc: not found


What looks really weird here is that
gmake invoked 'cc',
but an error message 'gcc :Command not found' was displayed.

I don't know why.



Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [PATCH 0/5] Kbuild: sync with Linux 3.16-rc1
  2014-06-19  8:26   ` Masahiro Yamada
@ 2014-06-20 15:54     ` Tom Rini
  0 siblings, 0 replies; 16+ messages in thread
From: Tom Rini @ 2014-06-20 15:54 UTC (permalink / raw)
  To: u-boot

On Thu, Jun 19, 2014 at 05:26:16PM +0900, Masahiro Yamada wrote:

> Hi Tom,
> 
> 
> On Wed, 18 Jun 2014 13:49:35 -0400
> Tom Rini <trini@ti.com> wrote:
> 
> > On Mon, Jun 16, 2014 at 06:56:35PM +0900, Masahiro Yamada wrote:
> > 
> > > 
> > > The merge window for Linux 3.16 is closed and Linux 3.16-rc1 is out now.
> > > 
> > > During the merge window, various Kbuild-related updates were merged into
> > > the upstream.
> > > 
> > > This series imports them to U-Boot.
> > 
> > I see you saw there's problems been reported and have moved this to RFC.
> > My thoughts on this right now are that as a rule of thumb we should:
> > 1) If our merge window and kernel merge window line up (say -rc1 kernel
> > came out, and we are -rc1 or haven't yet snapped -rc1), sync up, and
> > stay in sync to release on the kernel side (as close as possible)
> > 2) If our merge windows aren't in sync, just stick with kernel release.
> > 
> 
> I understand the rule.
> 
> But can I still request to apply only this one?
> http://patchwork.ozlabs.org/patch/359996/
> 
> It is purely cosmetic and I am really sure it is safe.

Deal, thanks.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140620/ffd67ad2/attachment.pgp>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [U-Boot] [U-Boot, 3/5] cosmetic: kbuild: clean-up coding style (sync with Linux 3.16-rc1)
  2014-06-16  9:56 ` [U-Boot] [PATCH 3/5] cosmetic: kbuild: clean-up coding style (sync with Linux 3.16-rc1) Masahiro Yamada
@ 2014-06-20 15:58   ` Tom Rini
  0 siblings, 0 replies; 16+ messages in thread
From: Tom Rini @ 2014-06-20 15:58 UTC (permalink / raw)
  To: u-boot

On Mon, Jun 16, 2014 at 06:56:38PM +0900, Masahiro Yamada wrote:

> Import the following trivial commits from Linux v3.16-rc1:
> 
>  bb66fc6 kbuild: trivial - use tabs for code indent where possible
>  7eb6e34 kbuild: trivial - remove trailing empty lines
>  3fbb43d kbuild: trivial - fix comment block indent
>  38385f8 kbuild: trivial - remove trailing spaces
> 
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140620/a1609342/attachment.pgp>

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-06-20 15:58 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-16  9:56 [U-Boot] [PATCH 0/5] Kbuild: sync with Linux 3.16-rc1 Masahiro Yamada
2014-06-16  9:56 ` [U-Boot] [PATCH 1/5] kbuild: move extra gcc checks to scripts/Makefile.extrawarn Masahiro Yamada
2014-06-16  9:56 ` [U-Boot] [PATCH 2/5] kbuild: sync mixed targets handling with Linux 3.16-rc1 Masahiro Yamada
2014-06-16 17:58   ` Jeroen Hofstee
2014-06-17  1:42     ` Masahiro Yamada
2014-06-17 18:45       ` Jeroen Hofstee
2014-06-20  2:17         ` Masahiro Yamada
2014-06-20  2:20         ` Masahiro Yamada
2014-06-16  9:56 ` [U-Boot] [PATCH 3/5] cosmetic: kbuild: clean-up coding style (sync with Linux 3.16-rc1) Masahiro Yamada
2014-06-20 15:58   ` [U-Boot] [U-Boot, " Tom Rini
2014-06-16  9:56 ` [U-Boot] [PATCH 4/5] kbuild: Use relative path when possible Masahiro Yamada
2014-06-17 10:46   ` Masahiro Yamada
2014-06-16  9:56 ` [U-Boot] [PATCH 5/5] scripts: objdiff: sync with Linux 3.16-rc1 Masahiro Yamada
2014-06-18 17:49 ` [U-Boot] [PATCH 0/5] Kbuild: " Tom Rini
2014-06-19  8:26   ` Masahiro Yamada
2014-06-20 15:54     ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox