blob: c3d806985a379c83944d23ccb418c4185b305b99 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001build_env_mini ½Å±¾ÖÆ×÷×îС±àÒëÁ´£¬¿ÉÓÃÓÚµÚÈý·½¿âºÍÓ¦ÓñàÒë
2build_env_mini_with_kernel ½Å±¾ÖÆ×÷×îС±àÒëÁ´£¬¿ÉÓÃÓÚµÚÈý·½¿â¡¢Ó¦ÓñàÒëºÍÄÚºËkoÄ£¿éµÄ±àÒë
3
4
5Èç¹û´æÔÚµÚÈý·½ko·â¿âµÄÇé¿ö£¬×îºÃ¹Ø±ÕÄÚºËko°æ±¾ºÅ¼ì²é¡£·ñÔòÄں˴úÂëÐÞ¸ÄÐèÒªµÚÈý·½koÖØÐ±àÒë¡£
6¹Ø±Õ·½·¨£º
7
81)¡¢ÄÚºËconfig.linuxÀïCONFIG_MODVERSIONSºÍCONFIG_MODULE_SRCVERSION_ALL ¸Ä³ÉÏÂÃæÅäÖÃ
9# CONFIG_MODVERSIONS is not set
10# CONFIG_MODULE_SRCVERSION_ALL is not set
11
122£©¡¢¹Ø±ÕcpkoºÍloadcpÁ½¸ökoµÄmodpost
13ÓÃÏÂÃæÃüÁî²éÕÒ
14cat 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²Ù×÷ÔËÐв½Ö裺
221¡¢´Ógit/svn»ñÈ¡¸É¾»µÄ¹¤³Ìµ½codeĿ¼¡£codeĿ¼°üº¬ap¡¢cp¡¢build¡¢pub¡¢toolsµÈĿ¼
232¡¢ÓÃÏÂÃæÃüÁ¸É¾»µÄap±¸·ÝÒ»¸öap2¡£±¸·ÝµÄʱºòapµÄĿ¼һ¶¨ÒªÊÇûÓбàÒë¹ýµÄ¡£
24
25cd code
26rsync -aq --delete --exclude=.svn --exclude=.git ./ap/ ./ap2/
27
28
293¡¢ÖÆ×÷×îС±àÒëÁ´
30cd ap/project/zx297520v3/prj_mifi/build
31make normal
32cd code
33
341)ÖÆ×÷×îС±àÒë
35ÖÆ×÷build_env_mini£¬ÔÚcodeĿ¼ÔËÐÐ
36bash ap/build/scripts/build_env_mini/build_env_mini.sh
37
382)ÖÆ×÷´øÄں˵Ä×îС±àÒë
39ÖÆ×÷build_env_mini_with_kernel£¬ÔÚcodeĿ¼ÔËÐÐ
40bash ap/build/scripts/build_env_mini_with_kernel/build_env_mini.sh
41
424¡¢ÖÆ×÷populate_sdk
43ÐÞ¸Äap/project/zx297520v3/prj_mifi/config/normal/config_lib.mk£¬¶¨Òåpopulate_sdk_lib´ò°üµ½±àÒëÁ´sysrootµÄlib¿â
44populate_sdk_lib := libsqlite libcurl libssl expat dbus glib
45
46cd ap/project/zx297520v3/prj_mifi/build
47make normal populate_sdk
48cd code
49bash ap/build/scripts/build_env_mini/build_env_mini.sh
50
51