我们想用臂式工具链为臂芯片制造钴。
首先,我们引用此链接“How to build for Raspberry Pi2”
然后,我们设置RASPI_HOME="./"
,创建一个文件夹"./sysroot"
,将"raspi-1_"
替换为1gyp_configuration.gypi1中的"raspi-2_"
,并在gyp_configuration.py
中设置我们的arm工具链。
但我们收到了一些错误消息,如下所示,
Traceback (most recent call last):
File "./gyp_cobalt", line 271, in <module>
sys.exit(main(sys.argv[1:]))
File "./gyp_cobalt", line 261, in main
gyp_return = gyp_runner.BuildConfig(config_name)
File "./gyp_cobalt", line 175, in BuildConfig
return gyp.main(args)
File "/cobalt/cobalt-git/src/tools/gyp/pylib/gyp/__init__.py", line 541, in main
return gyp_main(args)
File "/cobalt/cobalt-git/src/tools/gyp/pylib/gyp/__init__.py", line 526, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "/cobalt/cobalt-git/src/tools/gyp/pylib/gyp/generator/ninja.py", line 2277, in GenerateOutput
user_config)
File "/cobalt/cobalt-git/src/tools/gyp/pylib/gyp/generator/ninja.py", line 2223, in GenerateOutputForConfig
spec, config_name, generator_flags)
File "/cobalt/cobalt-git/src/tools/gyp/pylib/gyp/generator/ninja.py", line 405, in WriteSpec
config = spec['configurations'][config_name]
KeyError: 'raspi-2_debug'
我们是否必须正确设置其他配置?
答案 0 :(得分:0)
您必须确保gyp_configuration.py和gyp_configuration.gypi包含新的平台配置名称('raspi-2')。