@@ -396,7 +396,7 @@ LINUXINCLUDE := \
396396KBUILD_CPPFLAGS := -D__KERNEL__
397397
398398KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
399- -fno-strict-aliasing -fno-common \
399+ -fno-strict-aliasing -fno-common -fshort-wchar \
400400 -Werror-implicit-function-declaration \
401401 -Wno-format-security \
402402 -std=gnu89 $(call cc-option,-fno-PIE)
@@ -442,7 +442,7 @@ export RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn \
442442# ===========================================================================
443443# Rules shared between *config targets and build targets
444444
445- # Basic helpers built in scripts/
445+ # Basic helpers built in scripts/basic/
446446PHONY += scripts_basic
447447scripts_basic :
448448 $(Q )$(MAKE ) $(build ) =scripts/basic
@@ -505,7 +505,7 @@ ifeq ($(KBUILD_EXTMOD),)
505505 endif
506506 endif
507507endif
508- # install and module_install need also be processed one by one
508+ # install and modules_install need also be processed one by one
509509ifneq ($(filter install,$(MAKECMDGOALS ) ) ,)
510510 ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
511511 mixed-targets := 1
@@ -964,7 +964,7 @@ export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y2) $(drivers-y) $(net-y) $(virt-
964964export KBUILD_VMLINUX_LIBS := $(libs-y1 )
965965export KBUILD_LDS := arch/$(SRCARCH ) /kernel/vmlinux.lds
966966export LDFLAGS_vmlinux
967- # used by scripts/pacmage /Makefile
967+ # used by scripts/package /Makefile
968968export KBUILD_ALLDIRS := $(sort $(filter-out arch/% ,$(vmlinux-alldirs ) ) arch Documentation include samples scripts tools)
969969
970970vmlinux-deps := $(KBUILD_LDS ) $(KBUILD_VMLINUX_INIT ) $(KBUILD_VMLINUX_MAIN ) $(KBUILD_VMLINUX_LIBS )
@@ -992,8 +992,8 @@ include/generated/autoksyms.h: FORCE
992992ARCH_POSTLINK := $(wildcard $(srctree ) /arch/$(SRCARCH ) /Makefile.postlink)
993993
994994# Final link of vmlinux with optional arch pass after final link
995- cmd_link-vmlinux = \
996- $(CONFIG_SHELL ) $< $(LD ) $(LDFLAGS ) $(LDFLAGS_vmlinux ) ; \
995+ cmd_link-vmlinux = \
996+ $(CONFIG_SHELL ) $< $(LD ) $(LDFLAGS ) $(LDFLAGS_vmlinux ) ; \
997997 $(if $(ARCH_POSTLINK ) , $(MAKE ) -f $(ARCH_POSTLINK ) $@ , true)
998998
999999vmlinux : scripts/link-vmlinux.sh vmlinux_prereq $(vmlinux-deps ) FORCE
@@ -1184,6 +1184,7 @@ PHONY += kselftest
11841184kselftest :
11851185 $(Q )$(MAKE ) -C tools/testing/selftests run_tests
11861186
1187+ PHONY += kselftest-clean
11871188kselftest-clean :
11881189 $(Q )$(MAKE ) -C tools/testing/selftests clean
11891190
0 commit comments