mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
package/kmsxx: fix static install
Currently, we only try to install the shared libraries. However, when doing a static build, only the static libs are built, obviously. Fix this by only installing relevant libraries. Fixes: http://autobuild.buildroot.org/results/82c/82cfb7451f933b222abe30b5d35d23e409a4af79/ http://autobuild.buildroot.org/results/bb3/bb3840f14382b6ed77d5947eb3ac5c229286681e/ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
cd183755ff
commit
ad105ae42c
@ -29,17 +29,23 @@ endif
|
|||||||
KMSXX_LIBS = kms++ kms++util
|
KMSXX_LIBS = kms++ kms++util
|
||||||
|
|
||||||
define KMSXX_INSTALL_TARGET_CMDS
|
define KMSXX_INSTALL_TARGET_CMDS
|
||||||
$(foreach l,$(KMSXX_LIBS),\
|
$(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),
|
||||||
$(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
|
$(foreach l,$(KMSXX_LIBS),\
|
||||||
$(TARGET_DIR)/usr/lib/lib$(l).so
|
$(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
|
||||||
|
$(TARGET_DIR)/usr/lib/lib$(l).so
|
||||||
|
)
|
||||||
)
|
)
|
||||||
$(KMSXX_INSTALL_TARGET_TESTS)
|
$(KMSXX_INSTALL_TARGET_TESTS)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define KMSXX_INSTALL_STAGING_CMDS
|
define KMSXX_INSTALL_STAGING_CMDS
|
||||||
$(foreach l,$(KMSXX_LIBS),\
|
$(foreach l,$(KMSXX_LIBS),\
|
||||||
$(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
|
$(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),
|
||||||
$(STAGING_DIR)/usr/lib/lib$(l).so
|
$(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
|
||||||
|
$(STAGING_DIR)/usr/lib/lib$(l).so)
|
||||||
|
$(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),
|
||||||
|
$(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).a \
|
||||||
|
$(STAGING_DIR)/usr/lib/lib$(l).a)
|
||||||
mkdir -p $(STAGING_DIR)/usr/include/$(l)
|
mkdir -p $(STAGING_DIR)/usr/include/$(l)
|
||||||
cp -dpfr $(@D)/$(l)/inc/$(l)/* $(STAGING_DIR)/usr/include/$(l)/
|
cp -dpfr $(@D)/$(l)/inc/$(l)/* $(STAGING_DIR)/usr/include/$(l)/
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user