For OpenWRT, after something is manually added, to re-generate menuconfig, I figured out after many tests that I need to use
Code: Select all
make dirclean
Does anyone knows how I can re-launch menuconfig to change configurations? or force the system to regenerate the menuconfig?
Right now, gargoyle will launch menuconfig after command
Code: Select all
make custom
However, if I want to rebuild the ROM and change the configurations, e.g. to add new packages or even change the target using menuconfig. Seems like it is not possible to do so, other than manually modifying the .config file in both gargoyle/target/custom/profile/config as well as gargoyle/custom-src/.config
Is there an existing command for this because I don't see anything on this in the developer documentation either?
Currently, the only work around method I have is to go to /custom-src and then type make menuconf, save the changes and then copy this config file to both gargoyle/target/custom/profile/config as well as gargoyle/custom-src/.config. Then, relaunch the build process using make custom. Or manually modify the config file directly.
I also noticed that the build will fail if I go directly into /custom-src and issue make command there. There will be an error about
gargoyle/custom-src/build_dir/linux-ramips_rt305x/linux-3.3.8/net/ipv4/netfilter/*weburl*.ko' is missing.
Code: Select all
WARNING: skipping kmod-ebtables-ipv4 -- package not selected
WARNING: skipping kmod-ebtables-watchers -- package not selected
mkdir -p /home/openwrt/openwrt/gargoyle-beta/custom-src/bin/ramips/packages /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/CONTROL /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/pkginfo
. /home/openwrt/openwrt/gargoyle-beta/custom-src/include/shell.sh; export modules=; add_module() { priority="$1"; mods="$2"; boot="$3"; shift 3; for mod in $mods; do if [ -e /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/lib/modules/3.3.8/$mod.ko ]; then mkdir -p /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/etc/modules.d; echo "$mod" >> /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/etc/modules.d/$priority-nfnetlink; fi; done; if [ -e /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/etc/modules.d/$priority-nfnetlink ]; then if [ "$boot" = "1" ]; then mkdir -p /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/etc/modules-boot.d; ln -s ../modules.d/$priority-nfnetlink /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/etc/modules-boot.d/; fi; modules="${modules:+$modules }$priority-nfnetlink"; fi; }; add_module "48" "nfnetlink" ""; if [ -n "$modules" ]; then mkdir -p /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/etc/modules.d; mkdir -p /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/CONTROL; echo "#!/bin/sh" > /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/CONTROL/postinst; echo "[ -z \"\$IPKG_INSTROOT\" ] || exit 0" >> /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/CONTROL/postinst; echo ". /etc/functions.sh" >> /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/CONTROL/postinst; echo "load_modules $modules" >> /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/CONTROL/postinst; chmod 0755 /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/CONTROL/postinst; fi
find /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="mipsel-openwrt-linux-uclibc-" ; NM="mipsel-openwrt-linux-uclibc-nm" STRIP="/home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/host/bin/sstrip" STRIP_KMOD="/home/openwrt/openwrt/gargoyle-beta/custom-src/scripts/strip-kmod.sh" /home/openwrt/openwrt/gargoyle-beta/custom-src/scripts/rstrip.sh /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink
rstrip.sh: /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/lib/modules/3.3.8/nfnetlink.ko:relocatable
( echo "Package: kmod-nfnetlink"; echo "Version: 3.3.8-1"; DEPENDS='kernel (=3.3.8-1-92b7d63af023b47e9b000b7de1430143)'; for depend in kmod-ipt-core; do DEPENDS=${DEPENDS:+$DEPENDS, }${depend##+}; done; echo "Depends: $DEPENDS"; echo "Provides: "; echo "Source: package/kernel"; echo "Section: kernel"; echo "Status: unknown hold not-installed"; echo "Essential: no"; echo "Priority: optional"; echo "Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>"; echo "Architecture: ramips"; echo "Installed-Size: 0"; echo -n "Description: "; . /home/openwrt/openwrt/gargoyle-beta/custom-src/include/shell.sh; getvar V_Package_kmod_nfnetlink_description | sed -e 's,^[[:space:]]*, ,g'; ) > /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/CONTROL/control
chmod 644 /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/CONTROL/control
. /home/openwrt/openwrt/gargoyle-beta/custom-src/include/shell.sh; (cd /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink/CONTROL; )
ipkg-build -c -o 0 -g 0 /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink /home/openwrt/openwrt/gargoyle-beta/custom-src/bin/ramips/packages
Packaged contents of /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-nfnetlink into /home/openwrt/openwrt/gargoyle-beta/custom-src/bin/ramips/packages/kmod-nfnetlink_3.3.8-1_ramips.ipk
rm -rf /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink
mkdir -p /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/stamp /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink
. /home/openwrt/openwrt/gargoyle-beta/custom-src/include/shell.sh; export modules=; add_module() { priority="$1"; mods="$2"; boot="$3"; shift 3; for mod in $mods; do if [ -e /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/lib/modules/3.3.8/$mod.ko ]; then mkdir -p /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/etc/modules.d; echo "$mod" >> /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/etc/modules.d/$priority-nfnetlink; fi; done; if [ -e /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/etc/modules.d/$priority-nfnetlink ]; then if [ "$boot" = "1" ]; then mkdir -p /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/etc/modules-boot.d; ln -s ../modules.d/$priority-nfnetlink /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/etc/modules-boot.d/; fi; modules="${modules:+$modules }$priority-nfnetlink"; fi; }; add_module "48" "nfnetlink" ""; if [ -n "$modules" ]; then mkdir -p /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/etc/modules.d; mkdir -p /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/CONTROL; echo "#!/bin/sh" > /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/CONTROL/postinst; echo "[ -z \"\$IPKG_INSTROOT\" ] || exit 0" >> /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/CONTROL/postinst; echo ". /etc/functions.sh" >> /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/CONTROL/postinst; echo "load_modules $modules" >> /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/CONTROL/postinst; chmod 0755 /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/CONTROL/postinst; fi
SHELL= /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/host/bin/flock /home/openwrt/openwrt/gargoyle-beta/custom-src/tmp/.root-copy.flock -c 'cp -fpR /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink/. /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/'
rm -rf /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/tmp-kmod-nfnetlink
touch /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/stamp/.kmod-nfnetlink_installed
mkdir -p /home/openwrt/openwrt/gargoyle-beta/custom-src/bin/ramips/packages /home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/packages/ipkg-ramips/kmod-ipt-weburl/CONTROL /home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/pkginfo
ERROR: module '/home/openwrt/openwrt/gargoyle-beta/custom-src/build_dir/linux-ramips_rt305x/linux-3.3.8/net/ipv4/netfilter/*weburl*.ko' is missing.
make[3]: *** [/home/openwrt/openwrt/gargoyle-beta/custom-src/bin/ramips/packages/kmod-ipt-weburl_3.3.8-1_ramips.ipk] Error 1
make[3]: Leaving directory `/home/openwrt/openwrt/gargoyle-beta/custom-src/package/kernel'
make[2]: *** [package/kernel/compile] Error 2
make[2]: Leaving directory `/home/openwrt/openwrt/gargoyle-beta/custom-src'
make[1]: *** [/home/openwrt/openwrt/gargoyle-beta/custom-src/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/openwrt/openwrt/gargoyle-beta/custom-src'
make: *** [world] Error 2
Note: I am building on attitude_adjustment branch.
Thanks
Eric