weishanshan1084
6 months ago
21 changed files with 54 additions and 156 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,52 +0,0 @@ |
|||
image efi-part.vfat { |
|||
vfat { |
|||
file EFI { |
|||
image = "efi-part/EFI" |
|||
} |
|||
file Image { |
|||
image = "Image" |
|||
} |
|||
files = { |
|||
"e2000d-chillipi-edu-board.dtb", |
|||
"e2000d-demo-board.dtb", |
|||
"e2000d-miniitx-board.dtb", |
|||
"e2000d-power-board.dtb", |
|||
"e2000q-come-board.dtb", |
|||
"e2000q-demo-board.dtb", |
|||
"e2000q-edu-board.dtb", |
|||
"e2000q-hanwei-board.dtb", |
|||
"e2000q-miniitx-board.dtb", |
|||
"e2000q-vpx-board.dtb", |
|||
"e2000s-demo-board.dtb", |
|||
"pd1904-devboard-d4-dsk.dtb", |
|||
"pd2008-devboard-dsk.dtb", |
|||
"pd2308-demo-a.dtb", |
|||
"pd2308-demo-b.dtb", |
|||
"ps2316-devboard-16c-dsk.dtb", |
|||
"phytiumpi_firefly.dtb" |
|||
} |
|||
|
|||
} |
|||
|
|||
size = 400M |
|||
} |
|||
|
|||
image disk.img { |
|||
hdimage { |
|||
partition-table-type = "gpt" |
|||
} |
|||
|
|||
partition boot { |
|||
image = "efi-part.vfat" |
|||
partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b |
|||
offset = 32K |
|||
bootable = true |
|||
} |
|||
|
|||
partition root { |
|||
partition-type-uuid = 0FC63DAF-8483-4772-8E79-3D69D8477DE4 |
|||
partition-uuid = "0a52c129-7e0f-43ad-989f-d96b07ccdbb2" |
|||
image = "rootfs.ext2" |
|||
size = 11G |
|||
} |
|||
} |
@ -0,0 +1,5 @@ |
|||
config BR2_PACKAGE_KERNEL_HEADERS |
|||
bool "linux kernel headers" |
|||
help |
|||
This package is used to provide Linux kernel headers for |
|||
building out-of-tree kernel modules. |
@ -0,0 +1,19 @@ |
|||
################################################################################
|
|||
#
|
|||
# kernel-headers
|
|||
#
|
|||
################################################################################
|
|||
|
|||
# This package is used to provide Linux kernel headers for
|
|||
# building out-of-tree kernel modules.
|
|||
KERNEL_HEADERS_DEPENDENCIES = linux |
|||
|
|||
define KERNEL_HEADERS_CONFIGURE_CMDS |
|||
cp $(KERNEL_HEADERS_PKGDIR)/kernel_headers_install.sh $(@D) |
|||
endef |
|||
|
|||
define KERNEL_HEADERS_INSTALL_TARGET_CMDS |
|||
$(@D)/kernel_headers_install.sh $(TARGET_DIR) $(LINUX_VERSION_PROBED) $(LINUX_DIR) |
|||
endef |
|||
|
|||
$(eval $(generic-package)) |
@ -0,0 +1,28 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
deploy_kernel_headers_6_6 () { |
|||
topdir=$(pwd) |
|||
pdir=$1 |
|||
version=$2 |
|||
srctree=$3 |
|||
rm -rf $pdir/usr/src/linux-headers-$version |
|||
rm -rf $pdir/lib/modules/$version/build |
|||
cd ${srctree} |
|||
srctree=${srctree} SRCARCH=arm64 KCONFIG_CONFIG=.config \ |
|||
${srctree}/scripts/package/install-extmod-build $pdir/usr/src/linux-headers-$version |
|||
# used to build dma |
|||
cp drivers/dma/dmaengine.h $1/usr/include |
|||
cp drivers/dma/virt-dma.h $1/usr/include |
|||
find $pdir/usr/src/linux-headers-$version -name "*.o" -type f -exec rm -rf {} \; |
|||
cd $topdir |
|||
cp -r board/phytium/common/linux-6.6/scripts $pdir/usr/src/linux-headers-$version |
|||
mkdir -p $pdir/lib/modules/$version/ |
|||
ln -s /usr/src/linux-headers-$version $pdir/lib/modules/$version/build |
|||
} |
|||
|
|||
# $1: $(TARGET_DIR) |
|||
# $2: $(LINUX_VERSION_PROBED) |
|||
# $3: $(LINUX_DIR) |
|||
if [[ $2 = 6.6* ]];then |
|||
deploy_kernel_headers_6_6 $1 $2 $3 |
|||
fi |
Loading…
Reference in new issue