Re: [android-building] Flashing kernel in pixel 2 (walleye)..?

2019-07-19 Thread 'Dan Willemsen' via Android Building
Have you read https://source.android.com/setup/build/building-kernels? - Dan On Fri, Jul 19, 2019 at 11:25 AM Saurabh Sakhare wrote: > Hello, I'm newbie in kernel development. I want to know where can I get > pixel 2 kernel and Clang toolchain and commands. I've been trying to > compile it

Re: [android-building] How to upload a driver that I created to my device?

2019-07-19 Thread 'Dan Willemsen' via Android Building
Android (as AOSP) does not build the kernel along with the platform code -- it's expected to be delivered as a prebuilt. So setting KERNEL_DEFCONFIG won't do anything. - Dan On Fri, Jul 19, 2019 at 11:26 AM abhishekkumardwiv...@gmail.com < abhishekkumardwiv...@gmail.com> wrote: > If you have

Re: [android-building] SDK building - development/build/sdk.atree - couldn't locate source file error

2019-07-19 Thread 'Dan Willemsen' via Android Building
Building the sdk generally requires using the 'sdk' product when calling lunch -- it looks like that's why you were building a bunch of tools independently. I wouldn't be surprised if the sdk generation code didn't support OUT_DIR(/OUT_DIR_COMMON_BASE) that was anything other than "out". - Dan

[android-building] SDK building - development/build/sdk.atree - couldn't locate source file error

2019-07-19 Thread Nicolas Peslerbe
Dear all, I have an error I can't figure out where it comes from but maybe one of you can help me. I try to build android sdk with the following script: cd ../rk3399-android-8.1 . build/envsetup.sh export OUT_DIR_COMMON_BASE=~/androidSdk lunch nanopc_t4-userdebug make -j16 dmtracedump make

[android-building] Flashing kernel in pixel 2 (walleye)..?

2019-07-19 Thread Saurabh Sakhare
Hello, I'm newbie in kernel development. I want to know where can I get pixel 2 kernel and Clang toolchain and commands. I've been trying to compile it from last few days from random sources of git and google source. I could not compile a kernel I'm facing problem like some parse file is

Re: [android-building] How to upload a driver that I created to my device?

2019-07-19 Thread abhishekkumardwiv...@gmail.com
If you have full source code of Android stack with the kernel then you can check at AndroidBoard.mk file which will address the config file used for kernel compilation. If you want to compile only kernel then you can do something like: $ make -j4 KERNEL_DEFCONFIG=xyz_defconfig Here the