19 Star 121 Fork 187

OpenHarmony / build_lite

 / 详情

在 device 下对应的文件中,修改 CPU 类型,不生效

Confirmed
Bug
Opened this issue  
2021-08-05 17:23

【模块名_概率】简要描述:
ipcamera_hispark_taurus_linux, 在 device 下对应的文件中,修改 CPU 为 arm926EJ-S, 编译时的参数中显示 CPU 仍然为 cortex-a7.
修改如下:

cd device/hisilicon/hispark_taurus/sdk_linux
diff config.gni.bak config.gni
10c10
< board_cpu = "cortex-a7"
---
> board_cpu = "arm926EJ-S"
13c13
< board_arch = ""
---
> board_arch = "armv5"
32d31
<   "-mfpu=neon-vfpv4",
36d34
<   "-mfpu=neon-vfpv4",

编译提示如下:

[OHOS ERROR] [1489/3063] ACTION //device/hisilicon/modules/middleware:middleware_source_sdk(//build/lite/toolchain:linux_x86_64_ohos_clang)
[OHOS ERROR] FAILED: obj/device/hisilicon/modules/middleware/middleware_source_sdk_build_ext_components.txt 
[OHOS ERROR] /usr/bin/python3 ../../../build/lite/build_ext_components.py --path=../../../device/hisilicon/modules/middleware --command=./build.sh\ /home/luo/linux/openharmony/tmp/out/hispark_taurus/ipcamera_hispark_taurus_linux\ hi3516dv300\ linux\ clang\ emmc\ /home/luo/llvm/bin\ /home/luo/linux/openharmony/tmp/out/hispark_taurus/ipcamera_hispark_taurus_linux/sysroot\ \"-mfloat-abi=softfp\ -mfpu=neon-vfpv4\ -mcpu=cortex-a7\ --target=arm-linux-ohosmusl\" --target_dir=/home/luo/linux/openharmony/tmp/out/hispark_taurus/ipcamera_hispark_taurus_linux/obj/device/hisilicon/modules/middleware/build.log --out_dir=/home/luo/linux/openharmony/tmp/out/hispark_taurus/ipcamera_hispark_taurus_linux/error.log
[OHOS ERROR] [111/1574] ACTION //device/hisilicon/modules/middleware:middleware_source_sdk(//build/lite/toolchain:linux_x86_64_ohos_clang)
[OHOS ERROR] FAILED: obj/device/hisilicon/modules/middleware/middleware_source_sdk_build_ext_components.txt 
[OHOS ERROR] /usr/bin/python3 ../../../build/lite/build_ext_components.py --path=../../../device/hisilicon/modules/middleware --command=./build.sh\ /home/luo/linux/openharmony/tmp/out/hispark_taurus/ipcamera_hispark_taurus_linux\ hi3516dv300\ linux\ clang\ emmc\ /home/luo/llvm/bin\ /home/luo/linux/openharmony/tmp/out/hispark_taurus/ipcamera_hispark_taurus_linux/sysroot\ \"-mfloat-abi=softfp\ -mfpu=neon-vfpv4\ -mcpu=cortex-a7\ --target=arm-linux-ohosmusl\" --target_dir=/home/luo/linux/openharmony/tmp/out/hispark_taurus/ipcamera_hispark_taurus_linux/obj/device/hisilicon/modules/middleware/build.log --out_dir=/home/luo/linux/openharmony/tmp/out/hispark_taurus/ipcamera_hispark_taurus_linux/error.log
[OHOS ERROR] [116/1574] ACTION //third_party/wpa_supplicant/wpa_supplicant-2.9:wpa_supplicant-2.9(//build/lite/toolchain:linux_x86_64_ohos_clang)

可以看到 cpu 类型为 cortex-a7

【环境信息】:

  • 网络环境
  • 硬件开发板型号
  • 软件版本信息或tag节点
  • 测试环境
  • 其他

【预置条件】:

【测试步骤】:

【预期结果】:

【实际结果】:

【恢复手段】:

【出现概率】:问题出现次数/实际测试次数

【定位信息】:

    1. Log、截图、多媒体文件等,所有和问题有关的信息:

Comments (3)

RXD created缺陷
RXD set related repository to OpenHarmony/build_lite
Expand operation logs

修改架构后,请尝试使用hb build -f全量编译的方式。

全量编译仍然报错,无法通过编译。请自己修改试一下。总共修改了4行代码,如题。

按如题方法修改后确实还是失败,提示找不atomic的符号,请确定是否与#I4433U:ipcamera_hispark_taurus_linux, 修改 CPU 为 arm926EJ-S,编译失败?from=project-issue现象一样?如果是,是否可以在I4433U中跟踪此问题?

jady3356 changed issue state from 待办的 to 已确认

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
Confirm
参与者(2)
Python
1
https://git.oschina.net/openharmony/build_lite.git
git@git.oschina.net:openharmony/build_lite.git
openharmony
build_lite
build_lite

Search

161121 f78d6d6f 1850385 154831 86f8c370 1850385