summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorStefano Babic <[email protected]>2014-09-22 15:51:01 +0200
committerStefano Babic <[email protected]>2014-09-22 15:51:01 +0200
commit42817eb85de1d7dec399c75dbd133ea6b5351a72 (patch)
treecf93368fd5642cc995055f764103f85d7abbedf1 /examples
parent7a56bddd7fb9fe27c775cadd18ebde6f883d7cff (diff)
parent2a8c9c86b92a9ccee3c27286de317e19bb0530b3 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-arm
Diffstat (limited to 'examples')
-rw-r--r--examples/standalone/Makefile2
-rw-r--r--examples/standalone/stubs.c7
2 files changed, 3 insertions, 6 deletions
diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
index 2dacba2ebae..0863a8cda20 100644
--- a/examples/standalone/Makefile
+++ b/examples/standalone/Makefile
@@ -22,7 +22,7 @@ extra-$(CONFIG_PPC) += sched
ELF := $(strip $(extra-y))
extra-y += $(addsuffix .srec,$(extra-y)) $(addsuffix .bin,$(extra-y))
-clean-files := $(extra-) $(addsuffix .srec,$(extra-)) $(addsuffix .bin,$(extra-))
+clean-files := *.srec *.bin
COBJS := $(ELF:=.o)
diff --git a/examples/standalone/stubs.c b/examples/standalone/stubs.c
index c5c025dab33..0bf690e73d1 100644
--- a/examples/standalone/stubs.c
+++ b/examples/standalone/stubs.c
@@ -1,9 +1,6 @@
#include <common.h>
#include <exports.h>
-
-#ifndef GCC_VERSION
-#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
-#endif /* GCC_VERSION */
+#include <linux/compiler.h>
#if defined(CONFIG_X86)
/*
@@ -237,7 +234,7 @@ gd_t *global_data;
* implementation. On the other hand, asm() statements with
* arguments can be used only inside the functions (gcc limitation)
*/
-#if GCC_VERSION < 3004
+#if GCC_VERSION < 30400
static
#endif /* GCC_VERSION */
void __attribute__((unused)) dummy(void)