[lkml]   [2016]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[RFC PATCH 3/5] Trigger Module.ksymb generation in Makefile
Trigger the generation of file scripts/Module.ksymb in
Makefile by calling updated scripts/
with corresponding parameter (--genmodulesymb). The file
is generated at each compilation considering that
associations may change after tree updates.

This patch is part of a research project within
Google Summer of Code of porting 'make localmodconfig'
for backported drivers. The goal is to enable each
module to expose in /sys its corresponding CONFIG_* option.
The value of this attribute will be dynamically pegged by
modpost without requiring extra work from the driver developers.
Further, this information will be used by a hardware interogation
tool to extract build information about the existing devices.

Signed-off-by: Cristina Moraru <>
Makefile | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 393b615..286b949 100644
--- a/Makefile
+++ b/Makefile
@@ -219,6 +219,10 @@ VPATH := $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD))

export srctree objtree VPATH

+KSYMB_GENERATOR := $(objtree)/scripts/kconfig/
+ksymb_gen_command = perl $(KSYMB_GENERATOR) --genmoduleksymb $(objtree) $(Kconfig)
+ksymb_update := $(shell objtree=$(objtree) srctree=$(srctree) $(ksymb_gen_command))
# SUBARCH tells the usermode build what the underlying arch is. That is set
# first, and if a usermode build is happening, the "ARCH=um" on the command
# line overrides the setting of ARCH below. If a native build is happening,
 \ /
  Last update: 2016-09-17 09:57    [W:0.220 / U:17.116 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site