jefferyzhang 发表于 2020-4-7 14:18
https://www.jianshu.com/p/99bd019ed332
编译工程
1、cd android根目录
2、./build.sh -b prod
3、生成的固件在rockdev/Image-rk3399pro/目录下。
4、注意:如果单独编译kernel,需要先复制rockdev/Image-rk3399pro/ramdisk.img到kernel目录
swlmx 发表于 2020-4-7 14:25
所以我直接lunch user然后make?那教程里build.sh -b prod 是起什么作用
jefferyzhang 发表于 2020-4-7 14:34
自己脚本打开看下不就知道了。。。
- lunch rk3399pro-user
- build.sh -b prod
复制代码
- [ 33% 25586/75488] build out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy
- FAILED: out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy
- /bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ "user" = "user" -a -s out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo "==========" 1>&2; echo "ERROR: permissive domains not allowed in user builds" 1>&2; echo "List of invalid domains:" 1>&2; cat out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
- out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
- out/host/linux-x86/bin/checkpolicy: policy configuration loaded
- out/host/linux-x86/bin/checkpolicy: writing binary representation (version 30) to out/target/product/rk3399pro/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp
- ==========
- ERROR: permissive domains not allowed in user builds
- List of invalid domains:
- vendor_boot
- [ 33% 25597/75488] //external/sfntly:libsfntly clang++ cpp/src/sample/chromium/subsetter_impl.cc
- ninja: build stopped: subcommand failed.
- 09:54:47 ninja failed with: exit status 1
复制代码
swlmx 发表于 2020-4-10 10:44
还是编译不过。
jefferyzhang 发表于 2020-4-10 10:54
ERROR: permissive domains not allowed in user builds
这是sepolicy权限设置问题。
编译问题要自行goog ...
swlmx 发表于 2020-4-10 13:44
这东西不是镜像自己带的吗……是不是没设置好
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |