diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,7 +1,7 @@ | |||
1 | VERSION = 2 | 1 | VERSION = 2 |
2 | PATCHLEVEL = 6 | 2 | PATCHLEVEL = 6 |
3 | SUBLEVEL = 28 | 3 | SUBLEVEL = 28 |
4 | EXTRAVERSION = -rc2 | 4 | EXTRAVERSION = -rc3 |
5 | NAME = Killer Bat of Doom | 5 | NAME = Killer Bat of Doom |
6 | 6 | ||
7 | # *DOCUMENTATION* | 7 | # *DOCUMENTATION* |
@@ -961,6 +961,7 @@ export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH) | |||
961 | 961 | ||
962 | # The asm symlink changes when $(ARCH) changes. | 962 | # The asm symlink changes when $(ARCH) changes. |
963 | # Detect this and ask user to run make mrproper | 963 | # Detect this and ask user to run make mrproper |
964 | # If asm is a stale symlink (point to dir that does not exist) remove it | ||
964 | define check-symlink | 965 | define check-symlink |
965 | set -e; \ | 966 | set -e; \ |
966 | if [ -L include/asm ]; then \ | 967 | if [ -L include/asm ]; then \ |
@@ -970,6 +971,10 @@ define check-symlink | |||
970 | echo " set ARCH or save .config and run 'make mrproper' to fix it"; \ | 971 | echo " set ARCH or save .config and run 'make mrproper' to fix it"; \ |
971 | exit 1; \ | 972 | exit 1; \ |
972 | fi; \ | 973 | fi; \ |
974 | test -e $$asmlink || rm include/asm; \ | ||
975 | elif [ -d include/asm ]; then \ | ||
976 | echo "ERROR: $@ is a directory but a symlink was expected";\ | ||
977 | exit 1; \ | ||
973 | fi | 978 | fi |
974 | endef | 979 | endef |
975 | 980 | ||
@@ -1431,7 +1436,8 @@ ALLSOURCE_ARCHS := $(SRCARCH) | |||
1431 | define find-sources | 1436 | define find-sources |
1432 | ( for arch in $(ALLSOURCE_ARCHS) ; do \ | 1437 | ( for arch in $(ALLSOURCE_ARCHS) ; do \ |
1433 | find $(__srctree)arch/$${arch} $(RCS_FIND_IGNORE) \ | 1438 | find $(__srctree)arch/$${arch} $(RCS_FIND_IGNORE) \ |
1434 | -name $1 -print; \ | 1439 | -wholename $(__srctree)arch/$${arch}/include/asm -type d -prune \ |
1440 | -o -name $1 -print; \ | ||
1435 | done ; \ | 1441 | done ; \ |
1436 | find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \ | 1442 | find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \ |
1437 | -name $1 -print; \ | 1443 | -name $1 -print; \ |