diff options
author | Johannes Berg <johannes.berg@intel.com> | 2023-02-10 22:05:11 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2023-04-20 23:06:38 +0200 |
commit | fc54a4f15988e228cf88f888483e985c5f35031e (patch) | |
tree | a82d8ea9c4a6685e343ada975eeb935c470ec827 /arch/um/scripts | |
parent | 5d90cf6dcc6a4cb85a51ffe007a8e34375799164 (diff) |
um: prevent user code in modules
By not doing the user code cflags mangling we can simply
break the build for any user code sneaking into modules.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/scripts')
-rw-r--r-- | arch/um/scripts/Makefile.rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/scripts/Makefile.rules b/arch/um/scripts/Makefile.rules index a4dfa7d7636e..a8b7d9dab0a6 100644 --- a/arch/um/scripts/Makefile.rules +++ b/arch/um/scripts/Makefile.rules @@ -4,8 +4,8 @@ # =========================================================================== USER_SINGLE_OBJS := \ - $(foreach f,$(patsubst %.o,%,$(obj-y) $(obj-m)),$($(f)-objs)) -USER_OBJS += $(filter %_user.o,$(obj-y) $(obj-m) $(USER_SINGLE_OBJS)) + $(foreach f,$(patsubst %.o,%,$(obj-y)),$($(f)-objs)) +USER_OBJS += $(filter %_user.o,$(obj-y) $(USER_SINGLE_OBJS)) USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file)) $(USER_OBJS:.o=.%): \ |