Comile update.img error


#1

[ 95% 206/215] build out/target/product/kvim/obj/NOTICE.html
Combining NOTICE files into HTML
Combining NOTICE files into text
[ 97% 209/215] build out/target/produc…nifests/manifest-2018-07-17–01-50.xml
FAILED: /bin/bash -c “(mkdir -p out/target/product/kvim/upgrade ) && (repo manifest -r -o out/target/product/kvim/manifests/manifest-2018-07-17–01-50.xml ) && (cp out/target/product/kvim/manifests/manifest-2018-07-17–01-50.xml out/target/product/kvim/upgrade/manifest.xml )”
Traceback (most recent call last):
File “/android_box_7.1/.repo/repo/main.py”, line 531, in
_Main(sys.argv[1:])
File “/android_box_7.1/.repo/repo/main.py”, line 507, in _Main
result = repo._Run(argv) or 0
File “/android_box_7.1/.repo/repo/main.py”, line 180, in _Run
result = cmd.Execute(copts, cargs)
File “/android_box_7.1/.repo/repo/subcmds/manifest.py”, line 80, in Execute
self._Output(opt)
File “/android_box_7.1/.repo/repo/subcmds/manifest.py”, line 70, in _Output
peg_rev_upstream = opt.peg_rev_upstream)
File “/android_box_7.1/.repo/repo/manifest_xml.py”, line 327, in Save
output_projects(None, root, list(sorted(projects)))
File “/android_box_7.1/.repo/repo/manifest_xml.py”, line 241, in output_projects
output_project(parent, parent_node, project)
File “/android_box_7.1/.repo/repo/manifest_xml.py”, line 268, in output_project
value = p.work_git.rev_parse(HEAD + ‘^0’)
File “/android_box_7.1/.repo/repo/project.py”, line 2747, in runner
(self._project.name, name, p.stderr))
error.GitError: android_art rev-parse: fatal: Not a git repository (or any of the parent directories): .git

[ 97% 209/215] Construct recovery from boot
failed to reconstruct target deflate chunk 1 [(null)]; treating as normal
chunk 0: type 0 start 0 len 7800842
chunk 1: type 2 start 7800842 len 3658752
chunk 2: type 0 start 9307927 len 233
Construct patches for 3 chunks…
patch 0 is 212 bytes (of 7800842)
patch 1 is 3964353 bytes (of 1507085)
patch 2 is 103 bytes (of 94336070911440)
chunk 0: normal ( 0, 7800842) 212
chunk 1: deflate ( 7800842, 5760911) 3964353 (null)
chunk 2: raw ( 13561753, 103)
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target ‘ninja_wrapper’ failed
make: *** [ninja_wrapper] Error 1

How can I solve this problem without “repo sync” again , The project almost finish, but stuck here. Can I cancel repo here ,just compile update.img .


#2

You can try to modify the file device/khadas/kvim/kvim.mk. Thanks!

diff --git a/kvim/kvim.mk b/kvim/kvim.mk
index dd9467a..5ddb9b3 100644
--- a/kvim/kvim.mk
+++ b/kvim/kvim.mk
@@ -35,6 +35,7 @@ $(call inherit-product, device/khadas/kvim/device.mk)
 $(call inherit-product-if-exists, vendor/google/products/gms.mk)
 
 # kvim:
+BOARD_AUTO_COLLECT_MANIFEST := false
 
 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3