package/btrfs-progs: fix build on kernel < 5.10

zoned depends on kernel >= 5.10:
d4b4baf312

Fix the following build failure raised since bump to version 5.15.1 in
commit 20181c3f1b:

checking linux/blkzoned.h usability... yes
checking linux/blkzoned.h presence... yes
checking for linux/blkzoned.h... yes
checking for struct blk_zone.capacity... no
checking for BLKGETZONESZ defined in linux/blkzoned.h... yes
configure: error: linux/blkzoned.h does not provide blk_zone.capacity

Fixes:
 - http://autobuild.buildroot.org/results/381c7e8b4bfa624c3eca3ce072cfa412aba57f84

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Fabrice Fontaine 2022-01-09 12:23:37 +01:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 7be02d67a9
commit 570ed7b822

View File

@ -44,6 +44,12 @@ else
BTRFS_PROGS_CONF_OPTS += --disable-libudev
endif
ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10),y)
BTRFS_PROGS_CONF_OPTS += --enable-zoned
else
BTRFS_PROGS_CONF_OPTS += --disable-zoned
endif
HOST_BTRFS_PROGS_DEPENDENCIES = host-util-linux host-lzo host-zlib
HOST_BTRFS_PROGS_CONF_OPTS = \
--disable-backtrace \