hc
2024-08-12 233ab1bd4c5697f5cdec94e60206e8c6ac609b4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
################################################################################
#
# Patch the linux kernel with aufs extension
#
################################################################################
 
LINUX_EXTENSIONS += aufs
 
define AUFS_PREPARE_KERNEL
   if test -d $(@D)/fs/aufs/; then \
       echo "Your kernel already supports AUFS."; \
       exit 1; \
   fi
   $(APPLY_PATCHES) $(@D) $(AUFS_DIR) \
       aufs$(BR2_PACKAGE_AUFS_SERIES)-kbuild.patch \
       aufs$(BR2_PACKAGE_AUFS_SERIES)-base.patch \
       aufs$(BR2_PACKAGE_AUFS_SERIES)-mmap.patch \
       aufs$(BR2_PACKAGE_AUFS_SERIES)-standalone.patch
   cp -r $(AUFS_DIR)/fs/aufs/ $(@D)/fs/
   cp $(AUFS_DIR)/include/uapi/linux/aufs_type.h $(@D)/include/uapi/linux/
endef