[关闭]
@zifehng 2017-06-26T09:05:09.000000Z 字数 4632 阅读 1933

Mstar828 Android源码git部署记录


make clean

  1. $ make clobber
  1. $ cd vendor/mstar/mboot/sboot
  2. $ make clean
  1. $ cd vendor/mstar/supernova/projects/
  2. $ make clean
  1. $ cd vendor/mstar/kernel/3.10.40
  2. $ make clean

删除out目录

  1. $ rm out/ -rf

删除supernova下编译生成文件

  1. $ rm vendor/mstar/supernova/develop/lib/target/arm-gnueabi/muji/static/hard_float/ -rf
  2. $ rm vendor/mstar/supernova/target/dvb.muji/images/ext4/
  3. $ rm vendor/mstar/supernova/projects/buildsettings/buildsetting

删除hash.bin文件

  1. $ find ./ -name hash.bin | xargs rm

删除.gitignore与.git

  1. $ find ./ -name .gitignore | xargs rm
  2. $ find ./ -name .git | xargs rm -rf

批量填充空目录

  1. $ find . -type d -empty -exec touch {}/.gitkeep \;

修改commit_id.target.linux-arm.mk

external/chromium_org/third_party/angle/src/commit_id.target.linux-arm.mk
external/chromium_org/third_party/angle/src/commit_id.target.linux-arm64.mk

  1. $(gyp_shared_intermediate_dir)/angle/id/commit.h: $(gyp_shared_intermediate_dir)/angle/commit_id.py $(LOCAL_PATH)/third_party/angle/.git/index$(GYP_TARGET_DEPENDENCIES)
  2. --------------------------------------------------------------------------
  3. $(gyp_shared_intermediate_dir)/angle/id/commit.h: $(gyp_shared_intermediate_dir)/angle/commit_id.py #$(LOCAL_PATH)/third_party/angle/.git/index$(GYP_TARGET_DEPENDENCIES)

批量更名.gitignore

  1. find ./ -name ".gitignore" -print |
  2. while read name
  3. do
  4. echo $name
  5. rename 's/.gitignore/.mygitignore/' $name
  6. done

添加自定义.gitignore

.gitignore

  1. out/
  2. hash.bin

vendor/mstar/supernova/.gitignore

  1. !.gitignore
  2. target/hash.bin
  3. target/dvb.muji/tmp_image/
  4. target/dvb.muji/images/ext4/
  5. target/dfbinfo/
  6. target/dvb.muji/mscript/
  7. target/dvb.muji/mslib/directfb-1.4-0/
  8. target/dvb.muji/mslib/*.so.*
  9. target/dvb.muji/mslib/*.so
  10. target/dvb.muji/mslib/*.a
  11. target/dvb.muji/mslib/utopia/*.so
  12. target/europe_dtv.muji/
  13. lib.*/
  14. !lib.h
  15. !lib.zip
  16. !projects/customization/MStarSDK/lib.muji/
  17. !MStarSDK/release/lib.muji_buildsettings/
  18. !MStarSDK/release/lib.muji_Concox_Panel_1280X800_DDR_1024_1024.sh/
  19. !MStarSDK/src/middleware/ttx/lib/lib.amethyst/
  20. obj.*/
  21. bin.*/
  22. customer_base/
  23. Board.h
  24. projects/buildsettings/buildsetting
  25. projects/devices/pcb/device_pcb.h
  26. projects/dfbinfo/inc/Keypad.h
  27. projects/dfbinfo/inc/dfbrc.ini
  28. projects/msrv/multimedia/mmsdk/include/
  29. projects/msrv/multimedia/mmsdk_porting/include/
  30. projects/symbols/
  31. projects/tvos/mdroid/5.0/lib/linux-arm/
  32. projects/tvos/mdroid/5.0/obj/linux-arm/
  33. MStarSDK/release/
  34. !MstarSDK/release/lib.muji_buildsettings/
  35. develop/extra/target/*.tar.gz
  36. develop/include/
  37. !develop/include/apm/
  38. !develop/include/dfb/
  39. !develop/include/GPD/
  40. !develop/include/mhl/
  41. !develop/include/misc/
  42. !develop/include/tee/
  43. !develop/include/utopia/
  44. !develop/include/vdplayer/
  45. develop/include/utopia/muji/drvPQ.h
  46. develop/include/utopia/muji/drvPQ_Datatypes.h
  47. develop/include/utopia/muji/drvPQ_Define.h
  48. develop/include/utopia/muji/drvPQ_Define_cus.h
  49. develop/include/utopia/muji/drvPQ_cus.h
  50. develop/lib/target/arm-gnueabi/muji/static/hard_float/
  51. out/buildenv/board/INI/DBPath/*.ini
  52. tee/tee.bin
  53. projects/customization/MStarSDK/lib.muji/libMStarSDK_customer.a

vendor/mstar/kernel/3.10.40/.gitignore

  1. #
  2. # NOTE! Don't add files that are generated in specific
  3. # subdirectories here. Add them in the ".gitignore" file
  4. # in that subdirectory instead.
  5. #
  6. # NOTE! Please use 'git ls-files -i --exclude-standard'
  7. # command after changing this file, to see if there are
  8. # any tracked files which get ignored after the change.
  9. #
  10. # Normal rules
  11. #
  12. .*
  13. *.o
  14. *.o.*
  15. *.a
  16. *.s
  17. *.ko
  18. *.so
  19. *.so.dbg
  20. *.mod.c
  21. *.i
  22. *.lst
  23. *.symtypes
  24. *.order
  25. modules.builtin
  26. *.elf
  27. *.bin
  28. *.gz
  29. *.bz2
  30. *.lzma
  31. *.xz
  32. *.lzo
  33. *.patch
  34. *.gcno
  35. #
  36. # Top-level generic files
  37. #
  38. /tags
  39. /TAGS
  40. /linux
  41. /vmlinux
  42. /vmlinuz
  43. /System.map
  44. /Module.markers
  45. /Module.symvers
  46. #
  47. # Debian directory (make deb-pkg)
  48. #
  49. /debian/
  50. #
  51. # git files that we don't want to ignore even it they are dot-files
  52. #
  53. !.gitignore
  54. !.mailmap
  55. #
  56. # Generated include files
  57. #
  58. include/config
  59. include/generated
  60. arch/*/include/generated
  61. # stgit generated dirs
  62. patches-*
  63. # quilt's files
  64. patches
  65. series
  66. # cscope files
  67. cscope.*
  68. ncscope.*
  69. # gnu global files
  70. GPATH
  71. GRTAGS
  72. GSYMS
  73. GTAGS
  74. *.orig
  75. *~
  76. \#*#
  77. #
  78. # Leavings from module signing
  79. #
  80. extra_certificates
  81. signing_key.priv
  82. signing_key.x509
  83. x509.genke
  84. .version

vendor/mstar/mboot/.gitignore

  1. *.o
  2. *.o.*
  3. *.d
  4. *.s
  5. .depend
  6. hash.bin
  7. sboot/out/
  8. sboot/src/lib.a
  9. sboot/src/muji/lib.a
  10. sboot/src/muji/sboot.lds
  11. sboot/include/autoconf.h
  12. u-boot-2011.06/u-boot
  13. u-boot-2011.06/u-boot.lds
  14. u-boot-2011.06/u-boot.srec
  15. u-boot-2011.06/System.map
  16. u-boot-2011.06/board/mstar
  17. u-boot-2011.06/drivers/mstar
  18. u-boot-2011.06/include/asm
  19. u-boot-2011.06/include/autoconf.mk
  20. u-boot-2011.06/include/autoconf.mk.dep
  21. u-boot-2011.06/include/config.h
  22. u-boot-2011.06/include/config.mk
  23. u-boot-2011.06/include/generated/
  24. u-boot-2011.06/include/mstar/core/
  25. u-boot-2011.06/include/timestamp_autogenerated.h
  26. u-boot-2011.06/include/version_autogenerated.h

建立服务器本地仓库

  1. $ git init
  2. $ git add .
  3. $ git commit -m "initial commit"

建立服务器远程裸仓库

  1. $ mkdir l-828.git
  2. $ sudo chown git:git l-828.git
  3. $ git init --bare l-828.git

推送代码至裸仓库

  1. $ git remote add origin git@192.168.1.200:/home/dept/MSD6A828EVC/l-828.git
  2. $ git push -u origin master
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注