%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/src/blksnap-6.3.0.73/
Upload File :
Create Path :
Current File : //usr/src/blksnap-6.3.0.73/Makefile-config

# SPDX-License-Identifier: GPL-2.0

EXTRA_CFLAGS += $(shell 							\
	grep -qw "struct ftrace_regs" $(srctree)/include/linux/ftrace.h	&&	\
		echo -D HAVE_FTRACE_REGS)
EXTRA_CFLAGS += $(shell 							\
	grep -qw "ftrace_regs_set_instruction_pointer" $(srctree)/include/linux/ftrace.h && \
		echo -D HAVE_FTRACE_REGS_SET_INSTRUCTION_POINTER)
EXTRA_CFLAGS += $(shell 							\
	grep -qw "blk_qc_t submit_bio_noacct" $(srctree)/include/linux/blkdev.h	&& \
		echo -D HAVE_QC_SUBMIT_BIO_NOACCT)
EXTRA_CFLAGS += $(shell 							\
	grep -qw "void submit_bio_noacct" $(srctree)/include/linux/blkdev.h &&	\
		echo -D HAVE_VOID_SUBMIT_BIO_NOACCT)
EXTRA_CFLAGS += $(shell 							\
	grep -qw "struct super_block \*freeze_bdev"				\
		$(srctree)/include/linux/blkdev.h &&				\
		echo -D HAVE_SUPER_BLOCK_FREEZE)
EXTRA_CFLAGS += $(shell 							\
	grep -qw "*bi_bdev;" $(srctree)/include/linux/blk_types.h &&		\
		echo -D HAVE_BI_BDEV)
EXTRA_CFLAGS += $(shell 							\
	grep -qw "*bi_disk;" $(srctree)/include/linux/blk_types.h &&		\
		echo -D HAVE_BI_BDISK)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/genhd.h &&		\
	grep -qw "sector_t bdev_nr_sectors" $(srctree)/include/linux/genhd.h &&	\
		echo -D HAVE_BDEV_NR_SECTORS)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/blkdev.h &&		\
	grep -qw "sector_t bdev_nr_sectors" $(srctree)/include/linux/blkdev.h && \
		echo -D HAVE_BDEV_NR_SECTORS)
EXTRA_CFLAGS += $(shell 							\
	grep -qw "blk_mq_alloc_disk" $(srctree)/include/linux/blk-mq.h &&	\
		echo -D HAVE_BLK_MQ_ALLOC_DISK)
EXTRA_CFLAGS += $(shell 							\
	grep -qw "BIO_MAX_PAGES" $(srctree)/include/linux/bio.h &&		\
		echo -D HAVE_BIO_MAX_PAGES)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/genhd.h &&		\
	grep -qw "int add_disk" $(srctree)/include/linux/genhd.h &&		\
		echo -D HAVE_ADD_DISK_RESULT)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/blkdev.h &&		\
	grep -qw "int add_disk" $(srctree)/include/linux/blkdev.h &&		\
		echo -D HAVE_ADD_DISK_RESULT)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/genhd.h &&		\
	grep -qw "int __must_check add_disk" $(srctree)/include/linux/genhd.h && \
		echo -D HAVE_ADD_DISK_RESULT)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/blkdev.h &&		\
	grep -qw "int __must_check add_disk" $(srctree)/include/linux/blkdev.h && \
		echo -D HAVE_ADD_DISK_RESULT)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/genhd.h &&		\
	grep -qw "void blk_cleanup_disk" $(srctree)/include/linux/genhd.h &&	\
		echo -D HAVE_BLK_CLEANUP_DISK)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/blkdev.h &&		\
	grep -qw "void blk_cleanup_disk" $(srctree)/include/linux/blkdev.h &&	\
		echo -D HAVE_BLK_CLEANUP_DISK)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/genhd.h &&		\
		echo -D HAVE_GENHD_H)
EXTRA_CFLAGS += $(shell 							\
	grep "bio_alloc_bioset" $(srctree)/include/linux/bio.h |		\
	grep -qw "struct block_device" &&					\
		echo -D HAVE_BDEV_BIO_ALLOC)

EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/device/class.h &&	\
	grep -qw "define class_create" $(srctree)/include/linux/device/class.h && \
		echo -D HAVE_DEFINE_CLASS_CREATE_H)
# special for sles 15 sp3
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/device.h &&		\
	grep -qw "define class_create" $(srctree)/include/linux/device.h &&	\
		echo -D HAVE_DEFINE_CLASS_CREATE_H)

EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/blkdev.h &&		\
	grep -qw "struct blk_holder_ops" $(srctree)/include/linux/blkdev.h &&	\
		echo -D HAVE_BLK_HOLDER_OPS)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/blkdev.h &&		\
	grep -qw "struct bdev_handle" $(srctree)/include/linux/blkdev.h &&	\
		echo -D HAVE_BDEV_HANDLE)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/blkdev.h &&		\
	grep -qw "bdev_file_open_by_dev" $(srctree)/include/linux/blkdev.h &&	\
		echo -D HAVE_BDEV_FILE_OPEN)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/blkdev.h &&		\
	grep -qw "int bdev_freeze" $(srctree)/include/linux/blkdev.h &&		\
		echo -D HAVE_BDEV_FREEZE)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/blkdev.h &&		\
	grep "__blk_alloc_disk" $(srctree)/include/linux/blkdev.h |		\
	grep -qw "struct queue_limits" &&					\
		echo -D HAVE_BDEV_QUEUE_LIMITS)
EXTRA_CFLAGS += $(shell test -f $(srctree)/include/linux/blkdev.h &&		\
	grep -qw "void blk_queue_max_hw_sectors" $(srctree)/include/linux/blkdev.h &&	\
		echo -D HAVE_BLK_QUEUE_MAX_HW_SECTORS)


Zerion Mini Shell 1.0