|
@@ -30,9 +30,18 @@ silentoldconfig: $(obj)/conf
|
|
$(Q)mkdir -p include/generated
|
|
$(Q)mkdir -p include/generated
|
|
$< -s $(Kconfig)
|
|
$< -s $(Kconfig)
|
|
|
|
|
|
|
|
+# if no path is given, then use src directory to find file
|
|
|
|
+ifdef LSMOD
|
|
|
|
+LSMOD_F = $(shell if [ `basename $(LSMOD)` == $(LSMOD) ]; then \
|
|
|
|
+ echo $(objtree)/$(LSMOD); \
|
|
|
|
+ else \
|
|
|
|
+ echo $(LSMOD); \
|
|
|
|
+ fi)
|
|
|
|
+endif
|
|
|
|
+
|
|
localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
|
|
localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
|
|
$(Q)mkdir -p include/generated
|
|
$(Q)mkdir -p include/generated
|
|
- $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config
|
|
|
|
|
|
+ $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config
|
|
$(Q)if [ -f .config ]; then \
|
|
$(Q)if [ -f .config ]; then \
|
|
cmp -s .tmp.config .config || \
|
|
cmp -s .tmp.config .config || \
|
|
(mv -f .config .config.old.1; \
|
|
(mv -f .config .config.old.1; \
|
|
@@ -47,7 +56,7 @@ localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
|
|
|
|
|
|
localyesconfig: $(obj)/streamline_config.pl $(obj)/conf
|
|
localyesconfig: $(obj)/streamline_config.pl $(obj)/conf
|
|
$(Q)mkdir -p include/generated
|
|
$(Q)mkdir -p include/generated
|
|
- $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config
|
|
|
|
|
|
+ $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config
|
|
$(Q)sed -i s/=m/=y/ .tmp.config
|
|
$(Q)sed -i s/=m/=y/ .tmp.config
|
|
$(Q)if [ -f .config ]; then \
|
|
$(Q)if [ -f .config ]; then \
|
|
cmp -s .tmp.config .config || \
|
|
cmp -s .tmp.config .config || \
|