adgnaf 发表于 2019-12-5 14:43:48

在linux 3.10 内核下执行 `make distclean` 报错,请教可能的原因

在2019.10.9 更新的软件材料中,
在 linux-3.10 内核下执行 ` make distclean` 会报错
```
# Under directory linux-3.10
$ make distclean
drivers/video/sunxi/disp2/disp/de//Makefile:17: *** Too many open files.Stop.
scripts/Makefile.clean:94: recipe for target 'drivers/video/sunxi/disp2/disp' failed
make: *** Error 2
scripts/Makefile.clean:94: recipe for target 'drivers/video/sunxi' failed
make: *** Error 2
scripts/Makefile.clean:94: recipe for target 'drivers/video' failed
make: *** Error 2
Makefile:1038: recipe for target '_clean_drivers' failed
make: *** Error 2
```


adgnaf 发表于 2019-12-6 14:14:21

临时绕过办法:
编辑 drivers/video/sunxi/disp2/disp/de/Makefile , 添加
```txt
sub_dir = lowlevel_v2x
```
之后再进行` make distclean` 可以顺利进行。

adgnaf 发表于 2019-12-11 17:27:31

这是全志a40i linux kernel自身的问题。即使tinalinux r40 分支,也会有这个问题。

如果不使用视频输出,也可以修改drivers/video/Makefile , 移除sunxi 目录部分。

QianFan 发表于 2019-12-26 17:58:09

ifeq ($(CONFIG_ARCH_SUN50IW1P1),y)
sub_dir = lowlevel_sun50iw1
-include $(obj)/de/$(sub_dir)/Makefile
endif

ifeq ($(CONFIG_ARCH_SUN8IW10),y)
sub_dir = lowlevel_sun8iw10
-include $(obj)/de/$(sub_dir)/Makefile
endif

ifeq ($(CONFIG_ARCH_SUN8IW11),y)
sub_dir = lowlevel_v2x
-include $(obj)/de/$(sub_dir)/Makefile
endif

ifeq ($(CONFIG_ARCH_SUN50IW2),y)
sub_dir = lowlevel_v2x
-include $(obj)/de/$(sub_dir)/Makefile
endif

#-include $(obj)/de/$(sub_dir)/Makefile


这是android下的lichee的代码。不知是飞凌改动的还是什么原因。这样的代码是没问题的。

adgnaf 发表于 2019-12-27 17:02:13

QianFan 发表于 2019-12-26 17:58
这是android下的lichee的代码。不知是飞凌改动的还是什么原因。这样的代码是没问题的。

forlinx应该不会去改Kernel. 感觉应该是全志 TINA 内核团队作的修改。

medany1 发表于 2020-2-25 15:18:03

adgnaf 发表于 2019-12-27 17:02
forlinx应该不会去改Kernel. 感觉应该是全志 TINA 内核团队作的修改。

make3.18。。。。。。。。。。。。。。
页: [1]
查看完整版本: 在linux 3.10 内核下执行 `make distclean` 报错,请教可能的原因