@@ -731,18 +731,41 @@ packages:
731
731
# environ:
732
732
# DESTDIR: '@THIS_COLLECT_DIR@'
733
733
734
+ - name : linux-headers
735
+ source :
736
+ subdir : ' bundled'
737
+ url : ' https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.8.tar.xz'
738
+ checksum : ' blake2b:1eeab95bf09757131031ebeaa3fb66f01626ecfe3b72d0044176613d027ac6643c688a0bb8f4493ae6faa3d3bf0c89fcdff3c28d7b8375e59ed6e8bd6d856e44'
739
+ extract_path : ' linux-6.1.8'
740
+ format : ' tar.xz'
741
+ version : ' 6.1.8'
742
+ implict_package : true
743
+ configure :
744
+ - args : ['cp', '-Tr', '@THIS_SOURCE_DIR@', '.']
745
+ build :
746
+ - args : ['make', 'ARCH=x86_64', 'headers_install']
747
+ - args : ['find', 'usr/include', '-type', 'f', '!', '-name', '*.h', '-delete']
748
+ - args : ['mkdir', '-p', '@THIS_COLLECT_DIR@/usr']
749
+ # remove this file, as mlibc will override this file with one suited to mlibc
750
+ - args : ['rm', 'usr/include/linux/libc-compat.h']
751
+ - args : ['cp', '-r', 'usr/include', '@THIS_COLLECT_DIR@/usr']
752
+
734
753
- name : mlibc-headers
735
754
from_source : mlibc
736
755
implict_package : true
756
+ pkgs_required :
757
+ - linux-headers
737
758
configure :
738
759
- args :
739
760
- ' meson'
761
+ - ' setup'
740
762
- ' --cross-file'
741
763
- ' @SOURCE_ROOT@/userland/cross-file.ini'
742
764
- ' --prefix=/usr'
743
765
- ' -Dheaders_only=true'
744
766
- ' -Ddisable_iconv_option=true'
745
767
- ' -Dbuildtype=debug'
768
+ - ' -Dlinux_kernel_headers=@BUILD_ROOT@/packages/linux-headers/usr/include'
746
769
- ' @THIS_SOURCE_DIR@'
747
770
build :
748
771
- args : ['ninja']
@@ -758,16 +781,19 @@ packages:
758
781
implict_package : true
759
782
pkgs_required :
760
783
- mlibc-headers
784
+ - linux-headers
761
785
configure :
762
786
- args :
763
787
- ' meson'
788
+ - ' setup'
764
789
- ' --cross-file'
765
790
- ' @SOURCE_ROOT@/userland/cross-file.ini'
766
791
- ' --prefix=/usr'
767
792
- ' --libdir=lib'
768
793
- ' -Dmlibc_no_headers=true'
769
794
- ' -Ddisable_iconv_option=true'
770
795
- ' -Dbuildtype=debug'
796
+ - ' -Dlinux_kernel_headers=@BUILD_ROOT@/packages/linux-headers/usr/include'
771
797
- ' @THIS_SOURCE_DIR@'
772
798
build :
773
799
- args : ['ninja']
0 commit comments