Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build kernel under mac os #1

Open
xianliu1983 opened this issue Mar 15, 2021 · 3 comments
Open

build kernel under mac os #1

xianliu1983 opened this issue Mar 15, 2021 · 3 comments

Comments

@xianliu1983
Copy link

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
Copy link
Member

peyo-hd commented Mar 16, 2021

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
Copy link
Author

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
Copy link
Member

peyo-hd commented Mar 25, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants