hardkernel / linux

Linux kernel source tree
Other
426 stars 406 forks source link

misc: Prepend srcroot to referenced header paths #435

Open martinjlowm opened 3 months ago

martinjlowm commented 3 months ago

Building outside of the project root, requires srcroot to be prepended for paths to resolve to the intended include directories.

This is necessary for something like Nix Linux derivation that sets up a build/ directory and initiates make from it as the working directory.

Reference: https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel/generic.nix#L168

mdrjr commented 3 months ago

Hello @martinjlowm

Can you please submit this PR against odroid-6.6.y (that is the current kernel for XU4 and N2/N2L) We will discontinue kernel 6.1 in favor of 6.6

martinjlowm commented 3 months ago

Sure! Nice to know :)

It wasn't as simple as just changing the base branch - I'll rebase it ontop of the other branch either tonight or tomorrow and see if it compiles successfully.