mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes: kbuild: fix $(src) assignmnet with external modules
This commit is contained in:
commit
b09916e4f0
1 changed files with 6 additions and 0 deletions
|
@ -43,7 +43,13 @@ _modpost: __modpost
|
|||
include include/config/auto.conf
|
||||
include scripts/Kbuild.include
|
||||
|
||||
# When building external modules load the Kbuild file to retreive EXTRA_SYMBOLS info
|
||||
ifneq ($(KBUILD_EXTMOD),)
|
||||
|
||||
# set src + obj - they may be used when building the .mod.c file
|
||||
obj := $(KBUILD_EXTMOD)
|
||||
src := $(obj)
|
||||
|
||||
# Include the module's Makefile to find KBUILD_EXTRA_SYMBOLS
|
||||
include $(if $(wildcard $(KBUILD_EXTMOD)/Kbuild), \
|
||||
$(KBUILD_EXTMOD)/Kbuild, $(KBUILD_EXTMOD)/Makefile)
|
||||
|
|
Loading…
Reference in a new issue