无法运行 bitbake 命令,如果这样做,我会收到以下错误
joe@joe-O-E-M:~/BeagleBone/poky-dora-10.0.1/build$ bitbake core-image-minimal
ERROR: Traceback (most recent call last):
File "/home/joe/BeagleBone/poky-dora-10.0.1/bitbake/lib/bb/cookerdata.py", line 162, in wrapped
return func(fn, *args)
File "/home/joe/BeagleBone/poky-dora-10.0.1/bitbake/lib/bb/cookerdata.py", line 172, in parse_config_file
return bb.parse.handle(fn, data, include)
File "/home/joe/BeagleBone/poky-dora-10.0.1/bitbake/lib/bb/parse/__init__.py", line 99, in handle
return h['handle'](fn, data, include)
File "/home/joe/BeagleBone/poky-dora-10.0.1/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 147, in handle
feeder(lineno, s, fn, statements)
File "/home/joe/BeagleBone/poky-dora-10.0.1/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 184, in feeder
raise ParseError("unparsed line: '%s'" % s, fn, lineno);
ParseError: ParseError at /home/joe/BeagleBone/poky-dora-10.0.1/build/conf/bblayers.conf:12: unparsed line: 'BBLAYERS ?= " /home/joe/BeagleBone/poky-dora-10.0.1/meta /home/joe/BeagleBone/poky-dora-10.0.1/meta-yocto /home/joe/BeagleBone/poky-dora-10.0.1/meta-yocto-bsp '
ERROR: Unable …Run Code Online (Sandbox Code Playgroud) 我正在使用yocto。它不支持基于ft5x06s的触摸屏,因此我决定添加一个补丁。但是,当我添加补丁文件时,出现以下错误:
ERROR: Command Error: exit status: 1 Output:
Applying patch 0026-imx6q-smx6-edt-ft5x06.patch
patching file Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt
patching file drivers/input/touchscreen/edt-ft5x06.c
Hunk #22 FAILED at 751.
Hunk #23 succeeded at 811 (offset -1 lines).
Hunk #24 FAILED at 922.
Hunk #25 FAILED at 959.
Hunk #26 FAILED at 995.
Hunk #27 FAILED at 1009.
Hunk #28 succeeded at 1077 (offset 17 lines).
5 out of 28 hunks FAILED -- rejects in file drivers/input/touchscreen/edt-ft5x06.c
Patch 0026-imx6q-smx6-edt-ft5x06.patch does not apply (enforce with -f)
ERROR: Function failed: …Run Code Online (Sandbox Code Playgroud) 最近我开始查看他们正在使用的嵌入式代码
#define print() printf("hello world")
Run Code Online (Sandbox Code Playgroud)
代替
void print() { printf("hello world"); }
Run Code Online (Sandbox Code Playgroud)
我的问题是使用#define而不是创建函数有什么好处?