mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
package/azure-iot-sdk-c: create function for library installation
As a preparation for adding the creation of some symlinks, let's factor the library installation into a function. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
59de11b047
commit
43822bb6db
@ -44,18 +44,20 @@ AZURE_IOT_SDK_C_LIBS += \
|
|||||||
umqtt/libumqtt.so
|
umqtt/libumqtt.so
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define AZURE_IOT_SDK_C_INSTALL_STAGING_CMDS
|
define AZURE_IOT_SDK_C_INSTALL_LIBS
|
||||||
$(foreach l,$(AZURE_IOT_SDK_C_LIBS), \
|
$(foreach l,$(AZURE_IOT_SDK_C_LIBS), \
|
||||||
$(INSTALL) -D -m 0755 $(@D)/$(l) $(STAGING_DIR)/usr/lib/$(notdir $(l))
|
$(INSTALL) -D -m 0755 $(@D)/$(l) $(1)/usr/lib/$(notdir $(l))
|
||||||
)
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define AZURE_IOT_SDK_C_INSTALL_STAGING_CMDS
|
||||||
|
$(call AZURE_IOT_SDK_C_INSTALL_LIBS,$(STAGING_DIR))
|
||||||
cp -a $(@D)/c-utility/inc/* $(STAGING_DIR)/usr/include/
|
cp -a $(@D)/c-utility/inc/* $(STAGING_DIR)/usr/include/
|
||||||
cp -a $(@D)/iothub_client/inc/* $(STAGING_DIR)/usr/include/
|
cp -a $(@D)/iothub_client/inc/* $(STAGING_DIR)/usr/include/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define AZURE_IOT_SDK_C_INSTALL_TARGET_CMDS
|
define AZURE_IOT_SDK_C_INSTALL_TARGET_CMDS
|
||||||
$(foreach l,$(AZURE_IOT_SDK_C_LIBS), \
|
$(call AZURE_IOT_SDK_C_INSTALL_LIBS,$(TARGET_DIR))
|
||||||
$(INSTALL) -D -m 0755 $(@D)/$(l) $(TARGET_DIR)/usr/lib/$(notdir $(l))
|
|
||||||
)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(cmake-package))
|
$(eval $(cmake-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user