build_env_mini ½Å±¾ÖÆ×÷×îС±àÒëÁ´£¬¿ÉÓÃÓÚµÚÈý·½¿âºÍÓ¦ÓñàÒë | |
build_env_mini_with_kernel ½Å±¾ÖÆ×÷×îС±àÒëÁ´£¬¿ÉÓÃÓÚµÚÈý·½¿â¡¢Ó¦ÓñàÒëºÍÄÚºËkoÄ£¿éµÄ±àÒë | |
Èç¹û´æÔÚµÚÈý·½ko·â¿âµÄÇé¿ö£¬×îºÃ¹Ø±ÕÄÚºËko°æ±¾ºÅ¼ì²é¡£·ñÔòÄں˴úÂëÐÞ¸ÄÐèÒªµÚÈý·½koÖØÐ±àÒë¡£ | |
¹Ø±Õ·½·¨£º | |
1)¡¢ÄÚºËconfig.linuxÀïCONFIG_MODVERSIONSºÍCONFIG_MODULE_SRCVERSION_ALL ¸Ä³ÉÏÂÃæÅäÖà | |
# CONFIG_MODVERSIONS is not set | |
# CONFIG_MODULE_SRCVERSION_ALL is not set | |
2£©¡¢¹Ø±ÕcpkoºÍloadcpÁ½¸ökoµÄmodpost | |
ÓÃÏÂÃæÃüÁî²éÕÒ | |
cat ap/Makefile | grep -n Module.symvers | grep modpost | |
Á½ÐмÓ#×¢Ê͵ô | |
#(cd $(LINUX_DIR) && scripts/mod/modpost -m -a -o $(LINUX_DIR)/Module.symvers -c -s vmlinux drivers/cpko/cpko.ko) | |
#(cd $(LINUX_DIR) && scripts/mod/modpost -m -a -o $(LINUX_DIR)/Module.symvers -c -s vmlinux drivers/loadcp/loadcp.ko) | |
²Ù×÷ÔËÐв½Ö裺 | |
1¡¢´Ógit/svn»ñÈ¡¸É¾»µÄ¹¤³Ìµ½codeĿ¼¡£codeĿ¼°üº¬ap¡¢cp¡¢build¡¢pub¡¢toolsµÈĿ¼ | |
2¡¢ÓÃÏÂÃæÃüÁ¸É¾»µÄap±¸·ÝÒ»¸öap2¡£±¸·ÝµÄʱºòapµÄĿ¼һ¶¨ÒªÊÇûÓбàÒë¹ýµÄ¡£ | |
cd code | |
rsync -aq --delete --exclude=.svn --exclude=.git ./ap/ ./ap2/ | |
3¡¢ÖÆ×÷×îС±àÒëÁ´ | |
cd ap/project/zx297520v3/prj_mifi/build | |
make normal | |
cd code | |
1)ÖÆ×÷×îС±àÒë | |
ÖÆ×÷build_env_mini£¬ÔÚcodeĿ¼ÔËÐÐ | |
bash ap/build/scripts/build_env_mini/build_env_mini.sh | |
2)ÖÆ×÷´øÄں˵Ä×îС±àÒë | |
ÖÆ×÷build_env_mini_with_kernel£¬ÔÚcodeĿ¼ÔËÐÐ | |
bash ap/build/scripts/build_env_mini_with_kernel/build_env_mini.sh | |
4¡¢ÖÆ×÷populate_sdk | |
ÐÞ¸Äap/project/zx297520v3/prj_mifi/config/normal/config_lib.mk£¬¶¨Òåpopulate_sdk_lib´ò°üµ½±àÒëÁ´sysrootµÄlib¿â | |
populate_sdk_lib := libsqlite libcurl libssl expat dbus glib | |
cd ap/project/zx297520v3/prj_mifi/build | |
make normal populate_sdk | |
cd code | |
bash ap/build/scripts/build_env_mini/build_env_mini.sh | |