On 2018-03-22 12:41 +0000, Wookey wrote:
On 2018-03-22 08:38 +0000, Mike Leach wrote:
HI Wookey,
The test programs can be used at development time - but the trc_pkt_lister is also a handy utility to examine captured trace.
OK. I'll include that in the package then.
To do that it really needs to be installed, so here's a patch to do that.
I've ended up putting this in its own package (libopencsd-bin), which is a little excessive, but having binaries (as opposed to libraries) in libfoo-dev packages breaks multiarch, and we like things to be crossbuildable, especially kernel-related tools, so I think this makes sense. And more tools might turn up in the future?
I realise that all these patches to the main makefile tend to affect each other, so you've now got a pile of patches where the order matters and they needs refreshing as new ones arrive. I have just about finished messing now, and you are probably best off getting a consistent set from: http://wookware.org/software/repo/pool/main/libo/libopencsd/libopencsd_0.8.1... if piecing the changes together from this thread gets tiresome.
Index: libopencsd-0.8.1/decoder/build/linux/makefile =================================================================== --- libopencsd-0.8.1.orig/decoder/build/linux/makefile +++ libopencsd-0.8.1/decoder/build/linux/makefile @@ -74,6 +74,7 @@ export INSTALL=install PREFIX ?=/usr LIB_PATH ?= lib INSTALL_LIB_DIR=$(PREFIX)/$(LIB_PATH) +INSTALL_BIN_DIR=$(PREFIX)/bin export INSTALL_INCLUDE_DIR=$(PREFIX)/include/
# compile flags @@ -134,13 +135,15 @@ all: libs tests
libs: $(LIB_BASE_NAME)_lib $(LIB_CAPI_NAME)_lib
-install: libs - mkdir -p $(INSTALL_LIB_DIR) $(INSTALL_INCLUDE_DIR) +install: libs tests + mkdir -p $(INSTALL_LIB_DIR) $(INSTALL_INCLUDE_DIR) $(INSTALL_BIN_DIR) $(INSTALL) --mode=644 $(LIB_TARGET_DIR)/lib$(LIB_BASE_NAME).so $(INSTALL_LIB_DIR)/ $(INSTALL) --mode=644 $(LIB_TARGET_DIR)/lib$(LIB_CAPI_NAME).so $(INSTALL_LIB_DIR)/ $(INSTALL) --mode=644 $(LIB_TARGET_DIR)/lib$(LIB_BASE_NAME).a $(INSTALL_LIB_DIR)/ $(INSTALL) --mode=644 $(LIB_TARGET_DIR)/lib$(LIB_CAPI_NAME).a $(INSTALL_LIB_DIR)/ cd $(OCSD_ROOT)/build/linux/rctdl_c_api_lib && make install_inc + $(INSTALL) --mode=755 $(BIN_TEST_TARGET_DIR)/trc_pkt_lister $(INSTALL_BIN_DIR)/ +
################################ # build OpenCSD trace decode library
Wookey