summaryrefslogtreecommitdiff
path: root/linux/linux-ext-aufs.mk
blob: fb2f3560a787beb1d830611b9876c46fe067e40a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
################################################################################
# Linux Aufs extensions
#
# 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