mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Many tools need to identify the device address of a given device. So far, either the tool had its own implementation, or u2s_getbusid() was used. Though, u2s_getbusid() was mainly designed for and used by the DASD tools. Introduce util_sys with a first function util_sys_get_dev_addr() which provides a more universal way to identify the device address which is not limited to one particular device type. The device address represents either a busid (e.g. DASD), slot address (NVMe), H:C:T:L tuple (SCSI), or other id types associated with a device. Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
include ../common.mak
|
|
|
|
lib = libutil.a
|
|
|
|
examples = util_base_example \
|
|
util_panic_example \
|
|
util_path_example \
|
|
util_scandir_example \
|
|
util_file_example \
|
|
util_libc_example \
|
|
util_opt_example \
|
|
util_opt_command_example \
|
|
util_prg_example \
|
|
util_rec_example
|
|
|
|
all: $(lib)
|
|
examples: $(lib) $(examples)
|
|
|
|
objects = util_base.o \
|
|
util_path.o \
|
|
util_scandir.o \
|
|
util_file.o \
|
|
util_libc.o \
|
|
util_list.o \
|
|
util_opt.o \
|
|
util_panic.o \
|
|
util_part.o \
|
|
util_prg.o \
|
|
util_proc.o \
|
|
util_rec.o \
|
|
util_sys.o
|
|
|
|
util_base_example: util_base_example.o $(lib)
|
|
util_panic_example: util_panic_example.o $(lib)
|
|
util_path_example: util_path_example.o $(lib)
|
|
util_scandir_example: util_scandir_example.o $(lib)
|
|
util_file_example: util_file_example.o $(lib)
|
|
util_libc_example: util_libc_example.o $(lib)
|
|
util_opt_example: util_opt_example.o $(lib)
|
|
util_opt_command_example: util_opt_command_example.o $(lib)
|
|
util_panic_example: util_panic_example.o $(lib)
|
|
util_prg_example: util_prg_example.o $(lib)
|
|
util_rec_example: util_rec_example.o $(lib)
|
|
|
|
$(lib): $(objects)
|
|
|
|
install: all
|
|
|
|
clean:
|
|
rm -f *.o $(lib) $(examples)
|