lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | build_env_mini ½Å±¾ÖÆ×÷×îС±àÒëÁ´£¬¿ÉÓÃÓÚµÚÈý·½¿âºÍÓ¦ÓñàÒë
|
| 2 | build_env_mini_with_kernel ½Å±¾ÖÆ×÷×îС±àÒëÁ´£¬¿ÉÓÃÓÚµÚÈý·½¿â¡¢Ó¦ÓñàÒëºÍÄÚºËkoÄ£¿éµÄ±àÒë
|
| 3 |
|
| 4 |
|
| 5 | Èç¹û´æÔÚµÚÈý·½ko·â¿âµÄÇé¿ö£¬×îºÃ¹Ø±ÕÄÚºËko°æ±¾ºÅ¼ì²é¡£·ñÔòÄں˴úÂëÐÞ¸ÄÐèÒªµÚÈý·½koÖØÐ±àÒë¡£
|
| 6 | ¹Ø±Õ·½·¨£º
|
| 7 |
|
| 8 | 1)¡¢ÄÚºËconfig.linuxÀïCONFIG_MODVERSIONSºÍCONFIG_MODULE_SRCVERSION_ALL ¸Ä³ÉÏÂÃæÅäÖÃ
|
| 9 | # CONFIG_MODVERSIONS is not set
|
| 10 | # CONFIG_MODULE_SRCVERSION_ALL is not set
|
| 11 |
|
| 12 | 2£©¡¢¹Ø±ÕcpkoºÍloadcpÁ½¸ökoµÄmodpost
|
| 13 | ÓÃÏÂÃæÃüÁî²éÕÒ
|
| 14 | cat ap/Makefile | grep -n Module.symvers | grep modpost
|
| 15 | Á½ÐмÓ#×¢Ê͵ô
|
| 16 | #(cd $(LINUX_DIR) && scripts/mod/modpost -m -a -o $(LINUX_DIR)/Module.symvers -c -s vmlinux drivers/cpko/cpko.ko)
|
| 17 | #(cd $(LINUX_DIR) && scripts/mod/modpost -m -a -o $(LINUX_DIR)/Module.symvers -c -s vmlinux drivers/loadcp/loadcp.ko)
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 | ²Ù×÷ÔËÐв½Ö裺
|
| 22 | 1¡¢´Ógit/svn»ñÈ¡¸É¾»µÄ¹¤³Ìµ½codeĿ¼¡£codeĿ¼°üº¬ap¡¢cp¡¢build¡¢pub¡¢toolsµÈĿ¼
|
| 23 | 2¡¢ÓÃÏÂÃæÃüÁ¸É¾»µÄap±¸·ÝÒ»¸öap2¡£±¸·ÝµÄʱºòapµÄĿ¼һ¶¨ÒªÊÇûÓбàÒë¹ýµÄ¡£
|
| 24 |
|
| 25 | cd code
|
| 26 | rsync -aq --delete --exclude=.svn --exclude=.git ./ap/ ./ap2/
|
| 27 |
|
| 28 |
|
| 29 | 3¡¢ÖÆ×÷×îС±àÒëÁ´
|
| 30 | cd ap/project/zx297520v3/prj_mifi/build
|
| 31 | make normal
|
| 32 | cd code
|
| 33 |
|
| 34 | 1)ÖÆ×÷×îС±àÒë
|
| 35 | ÖÆ×÷build_env_mini£¬ÔÚcodeĿ¼ÔËÐÐ
|
| 36 | bash ap/build/scripts/build_env_mini/build_env_mini.sh
|
| 37 |
|
| 38 | 2)ÖÆ×÷´øÄں˵Ä×îС±àÒë
|
| 39 | ÖÆ×÷build_env_mini_with_kernel£¬ÔÚcodeĿ¼ÔËÐÐ
|
| 40 | bash ap/build/scripts/build_env_mini_with_kernel/build_env_mini.sh
|
| 41 |
|
| 42 | 4¡¢ÖÆ×÷populate_sdk
|
| 43 | ÐÞ¸Äap/project/zx297520v3/prj_mifi/config/normal/config_lib.mk£¬¶¨Òåpopulate_sdk_lib´ò°üµ½±àÒëÁ´sysrootµÄlib¿â
|
| 44 | populate_sdk_lib := libsqlite libcurl libssl expat dbus glib
|
| 45 |
|
| 46 | cd ap/project/zx297520v3/prj_mifi/build
|
| 47 | make normal populate_sdk
|
| 48 | cd code
|
| 49 | bash ap/build/scripts/build_env_mini/build_env_mini.sh
|
| 50 |
|
| 51 |
|