mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
This allows a static build of picocom when BR2_STATIC_LIBS=y but the toolchain
provides static and shared libraries.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit add51b89bf)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
22 lines
593 B
Makefile
22 lines
593 B
Makefile
################################################################################
|
|
#
|
|
# picocom
|
|
#
|
|
################################################################################
|
|
|
|
PICOCOM_VERSION = 2.1
|
|
PICOCOM_SITE = $(call github,npat-efault,picocom,$(PICOCOM_VERSION))
|
|
PICOCOM_LICENSE = GPLv2+
|
|
PICOCOM_LICENSE_FILES = LICENSE.txt
|
|
|
|
define PICOCOM_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
|
|
endef
|
|
|
|
define PICOCOM_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/picocom $(TARGET_DIR)/usr/bin/picocom
|
|
endef
|
|
|
|
$(eval $(generic-package))
|