diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -536,7 +536,7 @@ KBUILD_CFLAGS += -g | |||
536 | KBUILD_AFLAGS += -gdwarf-2 | 536 | KBUILD_AFLAGS += -gdwarf-2 |
537 | endif | 537 | endif |
538 | 538 | ||
539 | ifdef CONFIG_FTRACE | 539 | ifdef CONFIG_FUNCTION_TRACER |
540 | KBUILD_CFLAGS += -pg | 540 | KBUILD_CFLAGS += -pg |
541 | endif | 541 | endif |
542 | 542 | ||
@@ -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; \ |