linux-ext-aufs.mk 708 B

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