Commit 8f974668 authored by jan.koester's avatar jan.koester
Browse files

test

parent 0bb2977d
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -121,14 +121,15 @@ ensure_kernel_headers() {
        cp -a /usr/include/linux /usr/local/musl/include/
        cp -a /usr/include/asm-generic /usr/local/musl/include/

        # Find asm headers by locating asm/types.h directly
        ASM_TYPES=$(find /usr/include -name types.h -path "*/asm/*" 2>/dev/null | head -1)
        if [ -n "$ASM_TYPES" ]; then
            ASM_DIR=$(dirname "$ASM_TYPES")
            echo "Found asm headers at: $ASM_DIR"
            cp -a "$ASM_DIR" /usr/local/musl/include/
        # Find asm headers for the native architecture
        MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "x86_64-linux-gnu")
        if [ -d "/usr/include/${MULTIARCH}/asm" ]; then
            echo "Found native asm headers at: /usr/include/${MULTIARCH}/asm"
            cp -a "/usr/include/${MULTIARCH}/asm" /usr/local/musl/include/
        elif [ -d /usr/include/asm ]; then
            cp -a /usr/include/asm /usr/local/musl/include/
        else
            echo "WARNING: No asm/types.h found, generating asm/ from asm-generic/"
            echo "WARNING: No native asm headers found, generating from asm-generic"
            mkdir -p /usr/local/musl/include/asm
            for f in /usr/local/musl/include/asm-generic/*.h; do
                name=$(basename "$f")