Open nickdesaulniers opened 5 years ago
Thanks! A few things that come to mind:
bcmp()
instead of memcmp()
. I see the upstream kernel solved this by just adding a memcmp()
symbol, do you know if it would be better to change the target triple to not claim to be linux-gnu? (See #114.)lol, I wrote the kernel patch for bcmp
. I highly recommend sticking with the same target triple that the rest of clang and the kernel use, ie. <arch>-linux-gnu
. I also backported my patch to stable LTS branches, so those should all work for you (though some distro's have strange non-LTS kernel versions, I assume they manually backport stable...or at least I hope they do).
For CI+QEMU, all of our stuff is here. It's setup to do a basic boot test, then power off the machine cleanly. If the machine doesn't exit cleanly, timeout
snaps qemu's neck and the tests fail. Feel free to use our fs images or buildroot scripts or w/e. I'm also happy to help answer any questions. See also: https://nickdesaulniers.github.io/blog/2018/10/24/booting-a-custom-linux-kernel-in-qemu-and-debugging-it-with-gdb/
Thanks!
Hello! Neat project, a lot of folks in Android are keeping an eye on it. If you run into any issues with Clang or LLVM for the Linux kernel (or need help with anything else roughly related), please let us know: https://github.com/ClangBuiltLinux/linux/issues.