Merge commit 'v2.6.35' into kbuild/kconfig
authorMichal Marek <mmarek@suse.cz>
Wed, 4 Aug 2010 12:05:07 +0000 (14:05 +0200)
committerMichal Marek <mmarek@suse.cz>
Wed, 4 Aug 2010 12:05:07 +0000 (14:05 +0200)
Conflicts:
scripts/kconfig/Makefile

1  2 
Documentation/kbuild/kconfig.txt
scripts/kconfig/Makefile

Simple merge
index c0e459e2b01473ff002bbe2b497b19c7184c288a,7ea649da19400252ba751bfdb8bea5e7a5dba426..de934def410f0d2563a41105b8e02400b7f4cb44
@@@ -31,34 -31,44 +31,44 @@@ oldconfig: $(obj)/con
  
  silentoldconfig: $(obj)/conf
        $(Q)mkdir -p include/generated
 -      $< -s $(Kconfig)
 +      $< --$@ $(Kconfig)
  
+ # if no path is given, then use src directory to find file
+ ifdef LSMOD
+ LSMOD_F := $(LSMOD)
+ ifeq ($(findstring /,$(LSMOD)),)
+   LSMOD_F := $(objtree)/$(LSMOD)
+ endif
+ endif
  localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
-       $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config
-       $(Q)if [ -f .config ]; then                                     \
+       $(Q)mkdir -p include/generated
+       $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config
 -      $(Q)if [ -f .config ]; then                             \
 -                      cmp -s .tmp.config .config ||           \
 -                      (mv -f .config .config.old.1;           \
 -                       mv -f .tmp.config .config;             \
 -                       $(obj)/conf -s $(Kconfig);             \
 -                       mv -f .config.old.1 .config.old)       \
 -      else                                                    \
 -                      mv -f .tmp.config .config;              \
 -                      $(obj)/conf -s $(Kconfig);              \
++      $(Q)if [ -f .config ]; then                                     \
 +                      cmp -s .tmp.config .config ||                   \
 +                      (mv -f .config .config.old.1;                   \
 +                       mv -f .tmp.config .config;                     \
 +                       $(obj)/conf --silentoldconfig $(Kconfig);      \
 +                       mv -f .config.old.1 .config.old)               \
 +      else                                                            \
 +                      mv -f .tmp.config .config;                      \
 +                      $(obj)/conf --silentoldconfig $(Kconfig);       \
        fi
        $(Q)rm -f .tmp.config
  
  localyesconfig: $(obj)/streamline_config.pl $(obj)/conf
-       $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config
+       $(Q)mkdir -p include/generated
+       $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config
        $(Q)sed -i s/=m/=y/ .tmp.config
 -      $(Q)if [ -f .config ]; then                             \
 -                      cmp -s .tmp.config .config ||           \
 -                      (mv -f .config .config.old.1;           \
 -                       mv -f .tmp.config .config;             \
 -                       $(obj)/conf -s $(Kconfig);             \
 -                       mv -f .config.old.1 .config.old)       \
 -      else                                                    \
 -                      mv -f .tmp.config .config;              \
 -                      $(obj)/conf -s $(Kconfig);              \
 +      $(Q)if [ -f .config ]; then                                     \
 +                      cmp -s .tmp.config .config ||                   \
 +                      (mv -f .config .config.old.1;                   \
 +                       mv -f .tmp.config .config;                     \
 +                       $(obj)/conf --silentoldconfig $(Kconfig);      \
 +                       mv -f .config.old.1 .config.old)               \
 +      else                                                            \
 +                      mv -f .tmp.config .config;                      \
 +                      $(obj)/conf --silentoldconfig $(Kconfig);       \
        fi
        $(Q)rm -f .tmp.config