1 ################################################################################
5 ################################################################################
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+
15 SG3_UTILS_LICENSE_FILES = COPYING BSD_LICENSE
17 # install the libsgutils2 library
18 SG3_UTILS_INSTALL_STAGING = YES
20 ifeq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
21 define SG3_UTILS_REMOVE_PROGS
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} ; \
37 logging_level mandat readcap ready satl start stop \
39 $(RM) $(TARGET_DIR)/usr/bin/scsi_$${prog} ; \
42 sginfo sgm_dd sgp_dd; do \
43 $(RM) $(TARGET_DIR)/usr/bin/$${prog}; \
47 SG3_UTILS_POST_INSTALL_TARGET_HOOKS += SG3_UTILS_REMOVE_PROGS
50 $(eval $(autotools-package))