History

kbuild: move modpost out of 'scripts' target

I am eagar to build under the scripts/ directory only with $(HOSTCC), but scripts/mod/ highly depends on the $(CC) and target arch headers. That it why the 'scripts' target must depend on 'asm-generic', 'gcc-plugins', and $(autoksyms_h). Move it to the 'prepare0' stage. I know this is a cheesy workaround, but better than the current situation.

Masahiro Yamada committed 7 years ago

Commit 60df1ae1 parent 65bba043 files · +3 −5Browse files

Showing the changes to scripts (2 of 3 files). Show all

Unified · Split

2 files
  1. scripts/Makefile +1 −2
  2. scripts/mod/Makefile +0 −2
scripts/Makefile+1−2
@@ -37,9 +37,8 @@ build_unifdef: $(obj)/unifdef · 36 unmodified lines
3737 @:
3838
3939 subdir-$(CONFIG_MODVERSIONS) += genksyms
40−subdir-y += mod
4140 subdir-$(CONFIG_SECURITY_SELINUX) += selinux
4241 subdir-$(CONFIG_GDB_SCRIPTS) += gdb
4342
4443 # Let clean descend into subdirs
45−subdir- += basic dtc kconfig package gcc-plugins
44+subdir- += basic dtc kconfig mod package gcc-plugins
scripts/mod/Makefile+0−2
@@ -4,8 +4,6 @@ OBJECT_FILES_NON_STANDARD := y · 3 unmodified lines
44 hostprogs-y := modpost mk_elfconfig
55 always := $(hostprogs-y) empty.o
66
7−CFLAGS_REMOVE_empty.o := $(ASM_MACRO_FLAGS)
8−
97 modpost-objs := modpost.o file2alias.o sumversion.o
108
119 devicetable-offsets-file := devicetable-offsets.h