在linux内核编译中看看,如果只是做
make ARCH=xyz uImage
那么它将按照.conf文件编译文件,并在.c文件所在的同一文件夹中创build.o或.ko文件。
所以有什么办法,所以我可以强制编译,以便所有.o和.ko将在我指定的不同文件夹中的任何
/ tmp文件夹和gcc
如何在不触及CFLAGS环境variables的情况下在64位Linux机器上编译32位二进制文件
在共享主机上编译用于32位Linux的git
如何通过Windows命令提示符编译C / C ++程序?
如何在Linux下编译DEC UNIX v4.0应用程序的源代码?
线程“main”中的exceptionjava.lang.NoClassDefFoundError:HelloWorld
编译PHP + Libpuzzle到Windows
关于将FFmpeg编译为静态生成(仅限.lib文件)以便在Visual Studio中使用的说明?
尝试使用make O=/path/to/mydir
这里是内核的Makefile的文档:
# kbuild supports saving output files in a separate directory. # To locate output files in a separate directory two Syntaxes are supported. # In both cases the working directory must be the root of the kernel src. # 1) O= # Use "make O=dir/to/store/output/files/" # # 2) Set KBUILD_OUTPUT # Set the environment variable KBUILD_OUTPUT to point to the directory # where the output files shall be placed. # export KBUILD_OUTPUT=dir/to/store/output/files/ # make # # The O= assignment takes precedence over the KBUILD_OUTPUT environment # variable.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。