android-rpi / kernel_manifest

Android-RPi Kernel Manifest
9 stars 19 forks source link

build kernel under mac os #1

Open xianliu1983 opened 3 years ago

xianliu1983 commented 3 years ago

Hi, i am wondering if the kernel can be built under mac os environment. I finished android build under mac os environment, but got problem during kernel build.

  1. problem occurs during repo init. i followed the instruction and got below error message: repo init -u https://github.com/android-rpi/kernel_manifest -b arpi-5.10 fatal: manifest 'default.xml' not available fatal: remote arpi already exists with different attributes i checked the default.xml from parent repo and found the kernel/arpi was configured with revision "arpi-5.4.y". i tried to change it without success. Any idea why this is happen?
  2. problem occurs during kernel build. i created a directory outside from android folder and repo sync the kernel source code inside it successfully. Afterwards i moved all folder back to android directory for build. But during build i found that in the script build/build.sh is basically configured for linux environment. For example gnome readlink is under mac os greadlink and rm command is used from repo: build/build.sh: line 522: /Volumes/android/rpi4-kernel/build/build-tools/path/linux-x86/rm: cannot execute binary file i do not want to modify the build.sh in this way to pass my build under mac os, therefore it will be great to have support for build under mac os environment. Thanks a lot!
peyo-hd commented 3 years ago

Kernel source tree should be kept separated from Android source. Do not move folders to Android source tree.

Build scripts used by this manifest is used as-is from AOSP sources. Those are documented on https://source.android.com/setup/build/building-kernels

You could post Mac OS issue at this group : https://groups.google.com/g/android-building

xianliu1983 commented 3 years ago

Kernel source tree should be kept separated from Android source. Do not move folders to Android source tree.

Build scripts used by this manifest is used as-is from AOSP sources. Those are documented on https://source.android.com/setup/build/building-kernels

You could post Mac OS issue at this group : https://groups.google.com/g/android-building

Hi, thanks for your reply. i already posted at the group which you provided. another question, are those steps for Kernel Build correct or i am missing something.

  1. i created one separate directory with name "rpi4-kernel" under android AOSP directory.
  2. then cd rpi4-kernel
  3. i run this command rpi4-kernel repo init -u https://github.com/android-rpi/kernel_manifest -b arpi-5.10 fatal: manifest 'default.xml' not available fatal: remote arpi already exists with different attributes The android source was downloaded successfully according to this: https://github.com/android-rpi/local_manifests I am not familiar with repo. Would you please help here? Thanks a lot!
peyo-hd commented 3 years ago

Do not make kernel directory under AOSP source. Make separate directory outside of AOSP source.