dca0f6bf89c49c82e89e98c18642a475d286450c
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / sg3_utils / sg3_utils.mk
1 ################################################################################
2 #
3 # sg3_utils
4 #
5 ################################################################################
6
7 SG3_UTILS_VERSION = 1.40
8 SG3_UTILS_SOURCE = sg3_utils-$(SG3_UTILS_VERSION).tar.xz
9 SG3_UTILS_SITE = http://sg.danny.cz/sg/p
10 SG3_UTILS_LICENSE = BSD-3c
11 # utils progs are GPLv2+ licenced
12 ifeq ($(BR2_PACKAGE_SG3_UTILS_PROGS),y)
13 SG3_UTILS_LICENSE += GPLv2+
14 endif
15 SG3_UTILS_LICENSE_FILES = COPYING BSD_LICENSE
16
17 # install the libsgutils2 library
18 SG3_UTILS_INSTALL_STAGING = YES
19
20 ifeq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
21 define SG3_UTILS_REMOVE_PROGS
22         for prog in \
23                 compare_and_write copy_results dd decode_sense \
24                 emc_trespass format get_config \
25                 get_lba_status ident inq logs luns map26 \
26                 map sgm_dd modes opcodes sgp_dd persist prevent \
27                 raw rbuf rdac read readcap read_block_limits \
28                 read_buffer read_long reassign referrals \
29                 rep_zones requests reset reset_wp rmsn rtpg safte sanitize \
30                 sat_identify sat_phy_event sat_read_gplog sat_set_features \
31                 scan senddiag ses ses_microcode start stpg sync test_rwbuf \
32                 turs unmap verify vpd write_buffer write_long \
33                 write_same write_verify wr_mode xcopy; do \
34                 $(RM) $(TARGET_DIR)/usr/bin/sg_$${prog} ; \
35         done
36         for prog in \
37                 logging_level mandat readcap ready satl start stop \
38                 temperature; do \
39                 $(RM) $(TARGET_DIR)/usr/bin/scsi_$${prog} ; \
40         done
41         for prog in \
42                 sginfo sgm_dd sgp_dd; do \
43                 $(RM) $(TARGET_DIR)/usr/bin/$${prog}; \
44         done
45 endef
46
47 SG3_UTILS_POST_INSTALL_TARGET_HOOKS += SG3_UTILS_REMOVE_PROGS
48 endif
49
50 $(eval $(autotools-package))