{"id":1167,"date":"2015-01-06T19:55:37","date_gmt":"2015-01-06T17:55:37","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=1167"},"modified":"2017-10-07T17:27:06","modified_gmt":"2017-10-07T15:27:06","slug":"common-commands-when-building","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/common-commands-when-building\/","title":{"rendered":"Common steps\/commands when building\/compiling"},"content":{"rendered":"<pre class=\"brush:bash shell;gutter:true;toolbar:false\">\r\n# These settings are (make sense) for NSA310 storage box with Fonz Fun Plug (FFP).\r\n# see also https:\/\/adrhc.go.ro\/wordpress\/configure-command-for-building-various-software\/\r\n\r\nexport CFLAGS=\"-march=armv5te -mfloat-abi=soft -mabi=aapcs-linux -fno-stack-protector -pthread -O2 -Wall -Wno-error\"\r\nexport BUILD_FLAGS=\"$CFLAGS -I\/ffp\/include\"\r\nunset LIBS\r\nexport LDFLAGS=\"-L\/ffp\/lib\"\r\nexport CPPFLAGS=\"$BUILD_FLAGS\"\r\nexport CXXFLAGS=\"$BUILD_FLAGS\"\r\n\r\nNEW_BUILD_NAME=mpc\r\nNEW_BUILD_VER=1.0.2\r\nNEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER\r\nls -l \/tmp\/$NEW_BUILD_NAME-*\r\nls -l ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-*\r\nNEW_BUILD_NR=0\r\n\r\n~\/x.sh ffpg\r\n.\/configure --help > configure.help.txt\r\nnohup \/ffp\/bin\/make -C ~\/compile\/$NEW_BUILD_NAME_AND_VER &\r\n#renice -11 `pidof cc1plus` -p `pidof make` -p `pidof as` -p `pidof ld` -p `pidof configure` -p `pidof cc1` -p `pidof autogen.sh`\r\nrenice -11 `pidof cc1plus` -p `pidof make` -p `pidof as` -p `pidof ld` -p `pidof configure` -p `pidof cc1` -p `pidof autogen.sh` -p `pidof autorun.sh` -p `pidof find` -p `pidof x.sh` -p `pidof cp` -p `pidof bjam` -p `pidof xz` -p `pidof grep` -p `pidof sed` -p `pidof file` -p `pidof makepkg`\r\ntail -f nohup.out\r\n\r\nrm -rv $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\nrm -v \/tmp\/$NEW_BUILD_NAME_AND_VER-arm-*.txz\r\nmake install DESTDIR=$HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\ncd $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\nmakepkg $NEW_BUILD_NAME $NEW_BUILD_VER $NEW_BUILD_NR\r\ncp -v \/tmp\/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz ~\/ffp_0.7_armv5\/packages\/\r\nfunpkg -q $NEW_BUILD_NAME\r\nfunpkg -i ~\/apache-htdocs\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz\r\n\r\n#~\/x.sh xstart\r\n#this simply starts my custom-apache-server\r\n#~\/x.sh xstop\r\n#this simply stops my custom-apache-server\r\n\r\n#NSA310 it's a storage box\r\n#~\/x.sh hstart\r\n#this starts my nsa310-firmware-apache then my custom-apache-server\r\n#~\/x.sh hstop\r\n#this stops my custom-apache-server then my nsa310-firmware-apache\r\n\r\n#-mtune=xscale\r\n#use -v in CFLAGS for more debug messages\r\n#use -Wno-error in order to disable warnings treated as errors\r\nexport CFLAGS=\"-march=armv5te -mfloat-abi=soft -mabi=aapcs-linux -fno-stack-protector -pthread -O2 -Wall -Wno-error\"\r\n#export BUILD_FLAGS=\"$CFLAGS -I\/ffp\/include -I\/ffp\/opt\/apache-2.2.29-worker\/include\"\r\nexport BUILD_FLAGS=\"$CFLAGS -I\/ffp\/include\"\r\nexport LDFLAGS=\"-L\/ffp\/lib\"\r\n#export LIBS=\"-lintl -lpthread -lncurses\"\r\nexport CPPFLAGS=\"$BUILD_FLAGS\"\r\nexport CXXFLAGS=\"$BUILD_FLAGS\"\r\nexport LC_ALL=POSIX\r\n\r\nffpg1)\r\n\techo \"`date` ffpg begin (including automake files and dirs)\"\r\n\tfind . -maxdepth 1 -type f ! \\( -name \"FAQ*\" -o -name \"README*\" -o -name \"INSTALL*\" -o -iname \"ChangeLog*\" -o -name \"nohup.out\" -o -path \"*\/.svn\/*\" -o -iname \"*.gyp\" -o -iname \"*.gypi\" -o -iname autom4te.cache -o -iname \"*.xsd\" -o -iname \"*.xml\" -o -iname \"*.dtd\" -o -iname \"*.png\" -o -iname \"*.jpg\" -o -iname \"*.wsdl\" -o -iname \"*.gif\" -o -iname \"*.ttf\" -o -iname \"*.swf\" -o -iname \"*.sql\" -o -iname \"*.cpp\" -o -iname \"*.java\" -o -iname \"*.txt\" -o -iname \"*.log\" -o -iname \"*.so\" -o -iname \"*.hpp\" -o -iname \"*.bin\" -o -iname .gitignore -o -wholename \"*\/man\/*.[0-9]\" \\) \\( \\\r\n\t\t\t-exec sed -i s\/\"-L\\\/\\(lib\\|usr\\\/lib\\|usr\\\/local\\\/lib\\)\"\/\"-L\\\/ffp\\\/lib\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"-I\\\/\\(include\\|usr\\\/include\\|usr\\\/local\\\/include\\)\"\/\"-I\\\/ffp\\\/include\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/bin\\\/\"\/\"\\1\\\/ffp\\\/bin\\\/\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/etc\\\/ssl\\\/cert.pem\"\/\"\\1\\\/ffp\\\/etc\\\/ssl\\\/cert.pem\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/sbin\\\/\\(install\\|sh\\|bash\\|env\\|uname\\)\"\/\"\\1\\\/ffp\\\/bin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/sbin\\\/\\(ldconfig\\|sysctl\\|\\$sysctl\\)\"\/\"\\1\\\/ffp\\\/sbin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/local\\\/\\(bin\\|include\\|lib\\|perl\\|php\\|python\\|sbin\\|var\\)\"\/\"\\1\\\/ffp\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/make\"\/\"\\1\\\/ffp\\\/bin\\\/make\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/sbin\\\/\\(cache\\|sysctl\\|thin\\|useradd\\|groupadd\\|\\$sysctl\\)\"\/\"\\1\\\/ffp\\\/sbin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/sbin\\\/\\(convert\\|install\\|lsattr\\|lsdev\\)\"\/\"\\1\\\/ffp\\\/bin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/share\\\/antiword\"\/\"\\1\\\/ffp\\\/bin\\\/antiword\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/local\\\/gnu\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/\\(bin\\|include\\|lib\\)\"\/\"\\1\\\/ffp\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/bin\\\/\"\/\"\\\/ffp\\\/bin\\\/\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/etc\\\/ssl\\\/cert.pem\"\/\"\\\/ffp\\\/etc\\\/ssl\\\/cert.pem\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/sbin\\\/\\(install\\|sh\\|bash\\|env\\|uname\\)\"\/\"\\\/ffp\\\/bin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/sbin\\\/\\(ldconfig\\|sysctl\\|\\$sysctl\\)\"\/\"\\\/ffp\\\/sbin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/local\\\/\\(bin\\|include\\|lib\\|perl\\|php\\|python\\|sbin\\|var\\)\"\/\"\\\/ffp\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/make\"\/\"\\\/ffp\\\/bin\\\/make\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/sbin\\\/\\(cache\\|sysctl\\|thin\\|useradd\\|\\$sysctl\\)\"\/\"\\\/ffp\\\/sbin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/sbin\\\/\\(convert\\|install\\|lsattr\\|lsdev\\)\"\/\"\\\/ffp\\\/bin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/share\\\/antiword\"\/\"\\\/ffp\\\/bin\\\/antiword\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/local\\\/gnu\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/\\(bin\\|include\\|lib\\)\"\/\"\\\/ffp\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\--prefix\\`\\\/ffp\"\/\"\\--prefix\\`\"\/g {} \\; \\\r\n\t\t\\)\r\n\techo \"`date` ffpg done\"\r\n\t;;\r\nffpg-all)\r\n\techo \"`date` ffpg-all begin (including automake files and dirs)\"\r\n\tfind . -type f ! \\( -name \"FAQ*\" -o -name \"README*\" -o -name \"INSTALL*\" -o -iname \"ChangeLog*\" -o -name \"nohup.out\" -o -path \"*\/.svn\/*\" -o -iname \"*.gyp\" -o -iname \"*.gypi\" -o -iname autom4te.cache -o -iname \"*.xsd\" -o -iname \"*.xml\" -o -iname \"*.dtd\" -o -iname \"*.png\" -o -iname \"*.jpg\" -o -iname \"*.wsdl\" -o -iname \"*.gif\" -o -iname \"*.ttf\" -o -iname \"*.swf\" -o -iname \"*.sql\" -o -iname \"*.cpp\" -o -iname \"*.java\" -o -iname \"*.txt\" -o -iname \"*.log\" -o -iname \"*.so\" -o -iname \"*.hpp\" -o -iname \"*.bin\" -o -iname .gitignore -o -wholename \"*\/man\/*.[0-9]\" \\) \\( \\\r\n\t\t\t-exec sed -i s\/\"-L\\\/\\(lib\\|usr\\\/lib\\|usr\\\/local\\\/lib\\)\"\/\"-L\\\/ffp\\\/lib\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"-I\\\/\\(include\\|usr\\\/include\\|usr\\\/local\\\/include\\)\"\/\"-I\\\/ffp\\\/include\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/bin\\\/\"\/\"\\1\\\/ffp\\\/bin\\\/\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/etc\\\/ssl\\\/cert.pem\"\/\"\\1\\\/ffp\\\/etc\\\/ssl\\\/cert.pem\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/sbin\\\/\\(install\\|sh\\|bash\\|env\\|uname\\)\"\/\"\\1\\\/ffp\\\/bin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/sbin\\\/\\(ldconfig\\|sysctl\\|\\$sysctl\\)\"\/\"\\1\\\/ffp\\\/sbin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/local\\\/\\(bin\\|include\\|lib\\|perl\\|php\\|python\\|sbin\\|var\\)\"\/\"\\1\\\/ffp\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/make\"\/\"\\1\\\/ffp\\\/bin\\\/make\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/sbin\\\/\\(cache\\|sysctl\\|thin\\|useradd\\|groupadd\\|\\$sysctl\\)\"\/\"\\1\\\/ffp\\\/sbin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/sbin\\\/\\(convert\\|install\\|lsattr\\|lsdev\\)\"\/\"\\1\\\/ffp\\\/bin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/share\\\/antiword\"\/\"\\1\\\/ffp\\\/bin\\\/antiword\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/local\\\/gnu\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/\\(bin\\|include\\|lib\\)\"\/\"\\1\\\/ffp\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/bin\\\/\"\/\"\\\/ffp\\\/bin\\\/\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/etc\\\/ssl\\\/cert.pem\"\/\"\\\/ffp\\\/etc\\\/ssl\\\/cert.pem\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/sbin\\\/\\(install\\|sh\\|bash\\|env\\|uname\\)\"\/\"\\\/ffp\\\/bin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/sbin\\\/\\(ldconfig\\|sysctl\\|\\$sysctl\\)\"\/\"\\\/ffp\\\/sbin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/local\\\/\\(bin\\|include\\|lib\\|perl\\|php\\|python\\|sbin\\|var\\)\"\/\"\\\/ffp\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/make\"\/\"\\\/ffp\\\/bin\\\/make\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/sbin\\\/\\(cache\\|sysctl\\|thin\\|useradd\\|\\$sysctl\\)\"\/\"\\\/ffp\\\/sbin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/sbin\\\/\\(convert\\|install\\|lsattr\\|lsdev\\)\"\/\"\\\/ffp\\\/bin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/share\\\/antiword\"\/\"\\\/ffp\\\/bin\\\/antiword\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/local\\\/gnu\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/\\(bin\\|include\\|lib\\)\"\/\"\\\/ffp\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\--prefix\\`\\\/ffp\"\/\"\\--prefix\\`\"\/g {} \\; \\\r\n\t\t\\)\r\n\techo \"`date` ffpg-all done\"\r\n\t;;\r\nffpg-no-m4)\r\n\techo \"`date` ffpg-no-m4 begin (without autom4te.cache, Makefile.am, configure.ac, *.m4 and *.mk)\"\r\n\tfind . -type f \\( -iname makerpm -o -iname \"Makefile*\" -o -name \"*.cmake*\" -o -iname \"configure*\" -o -iname \"config.*\" -o -iname \"*.sh\" -o -iname \"*.py\" -o -iname \"*.py\" -o -iname \"*.pl\" -o -iname \"*.in\" -o -name \"*.test\" -o -name \"*.t\" -o -name \"*.php\" -o -name \"*.phpt\" -o -perm \/u=x,g=x,o=x \\) ! \\( -iname autom4te.cache -o -iname \"*.xsd\" -o -iname \"*.xml\" -o -iname \"*.dtd\" -o -iname \"*.png\" -o -iname \"*.jpg\" -o -iname \"*.wsdl\" -o -iname \"*.gif\" -o -iname \"*.ttf\" -o -iname \"*.swf\" -o -iname \"*.sql\" -o -iname \"*.cpp\" -o -iname \"*.java\" -o -iname \"*.txt\" -o -iname \"*.log\" -o -iname \"*.so\" -o -iname \"*.hpp\" -o -iname \"*.bin\" -o -iname .gitignore -o -wholename \"*\/man\/*.[0-9]\" -o -iname Makefile.am -o -iname configure.ac -o -iname \"*.m4\" -o -iname \"*.mk\" -o -iname \"*.m4.in\" -o -iname \"*.mk.in\" \\) \\( \\\r\n\t\t\t-exec sed -i s\/\"-L\\\/\\(lib\\|usr\\\/lib\\|usr\\\/local\\\/lib\\)\"\/\"-L\\\/ffp\\\/lib\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"-I\\\/\\(include\\|usr\\\/include\\|usr\\\/local\\\/include\\)\"\/\"-I\\\/ffp\\\/include\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/bin\\\/\"\/\"\\1\\\/ffp\\\/bin\\\/\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/etc\\\/ssl\\\/cert.pem\"\/\"\\1\\\/ffp\\\/etc\\\/ssl\\\/cert.pem\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/sbin\\\/\\(install\\|sh\\|bash\\|env\\|uname\\)\"\/\"\\1\\\/ffp\\\/bin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/sbin\\\/\\(ldconfig\\|sysctl\\|\\$sysctl\\)\"\/\"\\1\\\/ffp\\\/sbin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/local\\\/\\(bin\\|include\\|lib\\|perl\\|php\\|python\\|sbin\\|var\\)\"\/\"\\1\\\/ffp\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/make\"\/\"\\1\\\/ffp\\\/bin\\\/make\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/sbin\\\/\\(cache\\|sysctl\\|thin\\|useradd\\|groupadd\\|\\$sysctl\\)\"\/\"\\1\\\/ffp\\\/sbin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/sbin\\\/\\(convert\\|install\\|lsattr\\|lsdev\\)\"\/\"\\1\\\/ffp\\\/bin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/share\\\/antiword\"\/\"\\1\\\/ffp\\\/bin\\\/antiword\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/local\\\/gnu\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/\\(bin\\|include\\|lib\\)\"\/\"\\1\\\/ffp\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/bin\\\/\"\/\"\\\/ffp\\\/bin\\\/\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/etc\\\/ssl\\\/cert.pem\"\/\"\\\/ffp\\\/etc\\\/ssl\\\/cert.pem\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/sbin\\\/\\(install\\|sh\\|bash\\|env\\|uname\\)\"\/\"\\\/ffp\\\/bin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/sbin\\\/\\(ldconfig\\|sysctl\\|\\$sysctl\\)\"\/\"\\\/ffp\\\/sbin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/local\\\/\\(bin\\|include\\|lib\\|perl\\|php\\|python\\|sbin\\|var\\)\"\/\"\\\/ffp\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/make\"\/\"\\\/ffp\\\/bin\\\/make\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/sbin\\\/\\(cache\\|sysctl\\|thin\\|useradd\\|\\$sysctl\\)\"\/\"\\\/ffp\\\/sbin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/sbin\\\/\\(convert\\|install\\|lsattr\\|lsdev\\)\"\/\"\\\/ffp\\\/bin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/share\\\/antiword\"\/\"\\\/ffp\\\/bin\\\/antiword\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/local\\\/gnu\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/\\(bin\\|include\\|lib\\)\"\/\"\\\/ffp\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\--prefix\\`\\\/ffp\"\/\"\\--prefix\\`\"\/g {} \\; \\\r\n\t\t\\)\r\n\techo \"`date` ffpg-no-m4 done\"\r\n\t;;\r\nffpg)\r\n\t# ffpg-make-conf, ffpgmakeconf -> are the same as ffpg)\r\n\t# the search ! condition is the same for show-non-text-exec\r\n\t#\r\n\t# [!=[:space:]\\|'\\[\\\"\\`,;:\\(-] -> don't use \\. here because ..\/bin\/ pointing to the internal \r\n\t# path of the compiled software will become ..\/ffp\/bin\/ and shall break it's building flow.\r\n\t#\r\n\techo \"`date` ffpg begin (see also show-non-text-exec)\"\r\n\techo \"files included: *.mk, Makefile*, *.mkfile, *.cmake*, configure*, config.*, *.sh, *.py, *.pl, *.in, *.test, *.t, *.php, *.phpt and all executable\"\r\n\techo \"files excluded (executable or not): autom4te.cache, *.xsd, *.xml, *.dtd, *.png, *.jpg, *.wsdl, *.gif, *.ttf, *.swf, *.sql, *.cpp, *.java, *.txt, *.log, *.so, *.hpp, *.bin\"\r\n\techo \"ATTENTION: sometimes I found e.g. *.xml executable so I have to exclude them explicitly\"\r\n\tfind . -type f \\( -iname \"*.mk\" -o -iname makerpm -o -iname \"Makefile*\" -o -name \"*.mkfile\" -o -name \"*.cmake*\" -o -iname \"configure*\" -o -iname \"config.*\" -o -iname \"*.sh\" -o -iname \"*.py\" -o -iname \"*.py\" -o -iname \"*.pl\" -o -iname \"*.in\" -o -name \"*.test\" -o -name \"*.t\" -o -name \"*.php\" -o -name \"*.phpt\" -o -perm \/u=x,g=x,o=x \\) ! \\( -iname autom4te.cache -o -iname \"*.xsd\" -o -iname \"*.xml\" -o -iname \"*.dtd\" -o -iname \"*.png\" -o -iname \"*.jpg\" -o -iname \"*.wsdl\" -o -iname \"*.gif\" -o -iname \"*.ttf\" -o -iname \"*.swf\" -o -iname \"*.sql\" -o -iname \"*.cpp\" -o -iname \"*.java\" -o -iname \"*.txt\" -o -iname \"*.log\" -o -iname \"*.so\" -o -iname \"*.hpp\" -o -iname \"*.bin\" -o -iname .gitignore -o -wholename \"*\/man\/*.[0-9]\" \\) \\( \\\r\n\t\t\t-exec sed -i s\/\"-L\\\/\\(lib\\|usr\\\/lib\\|usr\\\/local\\\/lib\\)\"\/\"-L\\\/ffp\\\/lib\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"-I\\\/\\(include\\|usr\\\/include\\|usr\\\/local\\\/include\\)\"\/\"-I\\\/ffp\\\/include\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/bin\\\/\"\/\"\\1\\\/ffp\\\/bin\\\/\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/etc\\\/ssl\\\/cert.pem\"\/\"\\1\\\/ffp\\\/etc\\\/ssl\\\/cert.pem\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/sbin\\\/\\(install\\|sh\\|bash\\|env\\|uname\\)\"\/\"\\1\\\/ffp\\\/bin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/sbin\\\/\\(ldconfig\\|sysctl\\|\\$sysctl\\)\"\/\"\\1\\\/ffp\\\/sbin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/local\\\/\\(bin\\|include\\|lib\\|perl\\|php\\|python\\|sbin\\|var\\)\"\/\"\\1\\\/ffp\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/make\"\/\"\\1\\\/ffp\\\/bin\\\/make\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/sbin\\\/\\(cache\\|sysctl\\|thin\\|useradd\\|groupadd\\|\\$sysctl\\)\"\/\"\\1\\\/ffp\\\/sbin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/sbin\\\/\\(convert\\|install\\|lsattr\\|lsdev\\)\"\/\"\\1\\\/ffp\\\/bin\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/share\\\/antiword\"\/\"\\1\\\/ffp\\\/bin\\\/antiword\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/local\\\/gnu\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\([!=[:space:]\\|'\\[\\\"\\`,;:\\(-]\\)\\\/usr\\\/\\(bin\\|include\\|lib\\)\"\/\"\\1\\\/ffp\\\/\\2\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/bin\\\/\"\/\"\\\/ffp\\\/bin\\\/\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/etc\\\/ssl\\\/cert.pem\"\/\"\\\/ffp\\\/etc\\\/ssl\\\/cert.pem\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/sbin\\\/\\(install\\|sh\\|bash\\|env\\|uname\\)\"\/\"\\\/ffp\\\/bin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/sbin\\\/\\(ldconfig\\|sysctl\\|\\$sysctl\\)\"\/\"\\\/ffp\\\/sbin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/local\\\/\\(bin\\|include\\|lib\\|perl\\|php\\|python\\|sbin\\|var\\)\"\/\"\\\/ffp\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/make\"\/\"\\\/ffp\\\/bin\\\/make\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/sbin\\\/\\(cache\\|sysctl\\|thin\\|useradd\\|\\$sysctl\\)\"\/\"\\\/ffp\\\/sbin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/sbin\\\/\\(convert\\|install\\|lsattr\\|lsdev\\)\"\/\"\\\/ffp\\\/bin\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/share\\\/antiword\"\/\"\\\/ffp\\\/bin\\\/antiword\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/local\\\/gnu\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"^\\\/usr\\\/\\(bin\\|include\\|lib\\)\"\/\"\\\/ffp\\\/\\1\"\/g {} \\; , \\\r\n\t\t\t-exec sed -i s\/\"\\--prefix\\`\\\/ffp\"\/\"\\--prefix\\`\"\/g {} \\; \\\r\n\t\t\\)\r\n\techo \"`date` ffpg done\"\r\n\t;;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p># These settings are (make sense) for NSA310 storage box with Fonz Fun Plug (FFP). # see also https:\/\/adrhc.go.ro\/wordpress\/configure-command-for-building-various-software\/ export CFLAGS=&#8221;-march=armv5te -mfloat-abi=soft -mabi=aapcs-linux -fno-stack-protector -pthread -O2 -Wall -Wno-error&#8221; export BUILD_FLAGS=&#8221;$CFLAGS -I\/ffp\/include&#8221; unset LIBS export LDFLAGS=&#8221;-L\/ffp\/lib&#8221; export CPPFLAGS=&#8221;$BUILD_FLAGS&#8221; export CXXFLAGS=&#8221;$BUILD_FLAGS&#8221; NEW_BUILD_NAME=mpc [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/common-commands-when-building\/#more-1167\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Common steps\/commands when building\/compiling<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,5,8,11,163],"tags":[],"class_list":["post-1167","post","type-post","status-publish","format-standard","hentry","category-commands","category-compiling-from-source","category-howto","category-linux","category-nsa310"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=1167"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1167\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=1167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=1167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=1167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}