summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-12-24 13:21:01 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-05 12:27:19 +0100
commita1a9665113e415fc6ebd2943927f2089160d2308 (patch)
treecf9c8239572b05cdee0e28c276376f300e58d753
parent0ec6488501b07382099d019570cb5bdd13ddfb6c (diff)
downloadbarebox-a1a9665113e415fc6ebd2943927f2089160d2308.tar.gz
barebox-a1a9665113e415fc6ebd2943927f2089160d2308.tar.xz
kbuild: do not create symbolic link include/asm
There does not exist include/asm-$(SRCARCH) any more, so no point to create a symbolic link to an empty directory. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--.gitignore1
-rw-r--r--Makefile35
2 files changed, 1 insertions, 35 deletions
diff --git a/.gitignore b/.gitignore
index 5d9157d85d..03c5e20189 100644
--- a/.gitignore
+++ b/.gitignore
@@ -61,7 +61,6 @@ barebox_default_env*
#
# Generated include files
#
-include/asm
include/asm-*/asm-offsets.h
include/config
include/linux/compile.h
diff --git a/Makefile b/Makefile
index f1dcec290e..2978439f35 100644
--- a/Makefile
+++ b/Makefile
@@ -808,7 +808,7 @@ endif
prepare2: prepare3 outputmakefile
prepare1: prepare2 include/generated/version.h include/generated/utsrelease.h \
- include/asm include/config.h include/config/auto.conf
+ include/config.h include/config/auto.conf
ifneq ($(KBUILD_MODULES),)
$(Q)mkdir -p $(MODVERDIR)
@@ -828,39 +828,6 @@ prepare prepare-all: prepare0
export CPPFLAGS_barebox.lds += -C -U$(ARCH)
-# FIXME: The asm symlink changes when $(ARCH) changes. That's
-# hard to detect, but I suppose "make mrproper" is a good idea
-# before switching between archs anyway.
-
-define check-symlink
- set -e; \
- if [ -L include/asm ]; then \
- asmlink=`readlink include/asm | cut -d '-' -f 2`; \
- if [ "$$asmlink" != "$(SRCARCH)" ]; then \
- echo "ERROR: the symlink $@ points to asm-$$asmlink but asm-$(SRCARCH) was expected"; \
- echo " set ARCH or save .config and run 'make mrproper' to fix it"; \
- exit 1; \
- fi; \
- fi
-endef
-
-# We create the target directory of the symlink if it does
-# not exist so the test in chack-symlink works and we have a
-# directory for generated filesas used by some architectures.
-define create-symlink
- if [ ! -L include/asm ]; then \
- $(kecho) ' SYMLINK $@ -> include/asm-$(SRCARCH)'; \
- if [ ! -d include/asm-$(SRCARCH) ]; then \
- mkdir -p include/asm-$(SRCARCH); \
- fi; \
- ln -fsn asm-$(SRCARCH) $@; \
- fi
-endef
-
-include/asm:
- $(Q)$(check-symlink)
- $(Q)$(create-symlink)
-
define symlink-config-h
if [ -f $(srctree)/$(BOARD)/config.h ]; then \
$(kecho) ' SYMLINK $@ -> $(BOARD)/config.h'; \