build common kernel fal

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

build common kernel fal

赵志龙
I want to build kernel for x86_64, and do as the link https://source.android.com/setup/build/building-kernels tell:
repo init -u https://android.googlesource.com/kernel/manifest -b  common-android11-5.4
repo sync.

BUILD_CONFIG=common/build.config.x86_64 build/build.sh

Then I met this error:
make[1]: Entering directory '/home/....../out/common'
/home/....../common/Makefile:629: include/config/auto.conf: No such file or directory
/home/....../common/Makefile:685: include/config/auto.conf.cmd: No such file or directory
make[1]: x86_64-linux-androidkernel-gcc: Command not found
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
/home/....../Makefile:688: recipe for target '.config' failed
make[1]: *** [.config] Error 1
make[1]: Leaving directory '/home/zzl/03_kernel/03_goldfish_kernel-5.4/out/common'
Makefile:179: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

Does anyone knows what's the reason?

Thanks

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/da7b2f1e-2404-4d47-b8b2-8772eff4604bn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: build common kernel fal

sanshan zhang
Because GCC tool chain as below have removed from android11.

prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-androidkernel-gcc
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-androidkernel-gcc

you can select one of below ways to fix this issue.
1.  use clang compiler as below which integrated in android11 
prebuilts/clang/host/linux-x86/clang-r383902b/bin

2. use external gcc compiler.
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm

在2021年1月20日星期三 UTC+8 下午11:37:39<[hidden email]> 写道:
I want to build kernel for x86_64, and do as the link https://source.android.com/setup/build/building-kernels tell:
repo init -u https://android.googlesource.com/kernel/manifest -b  common-android11-5.4
repo sync.

BUILD_CONFIG=common/build.config.x86_64 build/build.sh

Then I met this error:
make[1]: Entering directory '/home/....../out/common'
/home/....../common/Makefile:629: include/config/auto.conf: No such file or directory
/home/....../common/Makefile:685: include/config/auto.conf.cmd: No such file or directory
make[1]: x86_64-linux-androidkernel-gcc: Command not found
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
/home/....../Makefile:688: recipe for target '.config' failed
make[1]: *** [.config] Error 1
make[1]: Leaving directory '/home/zzl/03_kernel/03_goldfish_kernel-5.4/out/common'
Makefile:179: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

Does anyone knows what's the reason?

Thanks

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/02aa0165-e71b-4ad8-81d7-29620d501b49n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: build common kernel fal

Alessio Balsini-2
In reply to this post by 赵志龙
Hi,

The build.config file you selected (common/build.config.x86_64) does not specify any defconfig file.
Unless you have other specific requirements for your target, you should follow the GKI instructions: https://source.android.com/setup/build/building-kernels#building-gki-modules

Cheers,
Alessio

On Wed, Jan 20, 2021 at 3:37 PM 赵志龙 <[hidden email]> wrote:
I want to build kernel for x86_64, and do as the link https://source.android.com/setup/build/building-kernels tell:
repo init -u https://android.googlesource.com/kernel/manifest -b  common-android11-5.4
repo sync.

BUILD_CONFIG=common/build.config.x86_64 build/build.sh

Then I met this error:
make[1]: Entering directory '/home/....../out/common'
/home/....../common/Makefile:629: include/config/auto.conf: No such file or directory
/home/....../common/Makefile:685: include/config/auto.conf.cmd: No such file or directory
make[1]: x86_64-linux-androidkernel-gcc: Command not found
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
/home/....../Makefile:688: recipe for target '.config' failed
make[1]: *** [.config] Error 1
make[1]: Leaving directory '/home/zzl/03_kernel/03_goldfish_kernel-5.4/out/common'
Makefile:179: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

Does anyone knows what's the reason?

Thanks

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/da7b2f1e-2404-4d47-b8b2-8772eff4604bn%40googlegroups.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAKM9mi%2BZQ_hRk_A9o5GLyuqx2m0qf48Kc8qtGP1kSCtGo%3DyvBQ%40mail.gmail.com.