@rm -f backport-include/backport/autoconf.h
.DEFAULT:
- @set -e ; test -f .local-symbols || ( \
+ @set -e ; test -f local-symbols || ( \
echo "/--------------" ;\
echo "| You shouldn't run make in the backports tree, but only in" ;\
echo "| the generated output. This here is only the skeleton code" ;\
@set -e ; if [ "$$(cat .kernel_config_md5 2>/dev/null)" != "$(CONFIG_MD5)" ] ;\
then \
echo -n "Generating local configuration database from kernel ..." ;\
- grep -v -f .local-symbols $(KERNEL_CONFIG) | grep = | ( \
+ grep -v -f local-symbols $(KERNEL_CONFIG) | grep = | ( \
while read l ; do \
if [ "$${l:0:7}" != "CONFIG_" ] ; then \
continue ;\
backport-include/backport/autoconf.h: .config Kconfig.versions Kconfig.kernel
@$(MAKE) oldconfig
@echo -n "Building backport-include/backport/autoconf.h ..."
- @grep -f .local-symbols .config | ( \
+ @grep -f local-symbols .config | ( \
echo "#ifndef COMPAT_AUTOCONF_INCLUDED" ;\
echo "#define COMPAT_AUTOCONF_INCLUDED" ;\
echo "/*" ;\
To achieve this, all Kconfig files are walked during the backporting
process, starting at the root "Kconfig", and any symbols defined in
them collected. Later then, only those options are renamed. They are
- also recorded for the build process in the output file .local-symbols.
+ also recorded for the build process in the output file local-symbols.
2) Kconfig files may reference files that don't exist when they're copied
but not all the drivers, e.g. drivers/net/wireless/Kconfig is copied
When the configuration is complete and exists in .config, the autoconf
header (backport-include/backport/autoconf.h) must be generated. This step is
also done in the make system (by a small embedded shell script) and needs
-the .local-symbols so it only includes the symbols from the backport.
+the local-symbols so it only includes the symbols from the backport.
After this exists, all that's left to do is source the .config file and
export everything in there into the environment for calling the kernel's
# write local symbol list -- needed during packaging build
if not bpid.integrate:
- f = open(os.path.join(bpid.target_dir, '.local-symbols'), 'w')
+ f = open(os.path.join(bpid.target_dir, 'local-symbols'), 'w')
for sym in symbols:
f.write('%s=\n' % sym)
f.close()