@@ -34,19 +34,7 @@ silentoldconfig: $(obj)/conf
$< --$@ $(Kconfig)
localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
- $(Q)mkdir -p include/generated
- $(Q)perl $< $(srctree) $(Kconfig) > .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 --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
+ $(Q)$(src)/localconfig.sh
# Create new linux.pot file
# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
new file mode 100755
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+
+mkdir -p include/generated
+
+perl "${srctree}/scripts/kconfig/streamline_config.pl" ${srctree}/ ${Kconfig} $1 > .tmp.config
+
+if [ -f .config ]; then
+ if ! cmp -s .tmp.config .config; then
+ mv -f .config .config.old.1
+ mv -f .tmp.config .config
+ ${obj}/conf --silentoldconfig ${Kconfig}
+ mv -f .config.old.1 .config.old
+ fi
+else
+ mv -f .tmp.config .config
+ ${obj}/conf --silentoldconfig ${Kconfig}
+fi
+
+rm -f .tmp.config