diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-11-28 22:13:24 -0500 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-01 09:09:34 -0500 |
| commit | 60df1aee2aecb53efb4218b4dfdf7d6c80a5a3de (patch) | |
| tree | 2fb422b14d1dcc32e4eaed5a6b22179514fe4729 /scripts | |
| parent | 65bba0423ecf89fb291d2269e0087707888a1cef (diff) | |
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.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile | 3 | ||||
| -rw-r--r-- | scripts/mod/Makefile | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/scripts/Makefile b/scripts/Makefile index ece52ff20171..b48259d30280 100644 --- a/scripts/Makefile +++ b/scripts/Makefile | |||
| @@ -37,9 +37,8 @@ build_unifdef: $(obj)/unifdef | |||
| 37 | @: | 37 | @: |
| 38 | 38 | ||
| 39 | subdir-$(CONFIG_MODVERSIONS) += genksyms | 39 | subdir-$(CONFIG_MODVERSIONS) += genksyms |
| 40 | subdir-y += mod | ||
| 41 | subdir-$(CONFIG_SECURITY_SELINUX) += selinux | 40 | subdir-$(CONFIG_SECURITY_SELINUX) += selinux |
| 42 | subdir-$(CONFIG_GDB_SCRIPTS) += gdb | 41 | subdir-$(CONFIG_GDB_SCRIPTS) += gdb |
| 43 | 42 | ||
| 44 | # Let clean descend into subdirs | 43 | # Let clean descend into subdirs |
| 45 | subdir- += basic dtc kconfig package gcc-plugins | 44 | subdir- += basic dtc kconfig mod package gcc-plugins |
diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile index a5b4af47987a..42c5d50f2bcc 100644 --- a/scripts/mod/Makefile +++ b/scripts/mod/Makefile | |||
| @@ -4,8 +4,6 @@ OBJECT_FILES_NON_STANDARD := y | |||
| 4 | hostprogs-y := modpost mk_elfconfig | 4 | hostprogs-y := modpost mk_elfconfig |
| 5 | always := $(hostprogs-y) empty.o | 5 | always := $(hostprogs-y) empty.o |
| 6 | 6 | ||
| 7 | CFLAGS_REMOVE_empty.o := $(ASM_MACRO_FLAGS) | ||
| 8 | |||
| 9 | modpost-objs := modpost.o file2alias.o sumversion.o | 7 | modpost-objs := modpost.o file2alias.o sumversion.o |
| 10 | 8 | ||
| 11 | devicetable-offsets-file := devicetable-offsets.h | 9 | devicetable-offsets-file := devicetable-offsets.h |
