2013-07-20 01:37:54 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# sunxi-cedarx
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-10-12 12:47:04 +02:00
|
|
|
SUNXI_CEDARX_VERSION = b8f52d913f73720e50d8f1b2f8610467b575dc45
|
2013-12-05 18:20:46 +01:00
|
|
|
SUNXI_CEDARX_SITE = $(call github,linux-sunxi,cedarx-libs,$(SUNXI_CEDARX_VERSION))
|
2013-07-20 01:37:54 +02:00
|
|
|
|
|
|
|
SUNXI_CEDARX_INSTALL_STAGING = YES
|
|
|
|
|
2013-08-07 00:06:47 +02:00
|
|
|
SUNXI_CEDARX_CONFIGURE_OPTS = \
|
|
|
|
CROSS_COMPILE=$(TARGET_CROSS)
|
|
|
|
|
2013-07-20 01:37:54 +02:00
|
|
|
ifeq ($(BR2_ARM_EABIHF),y)
|
|
|
|
SUNXI_CEDARX_BIN_DIR = $(@D)/libcedarv/linux-armhf
|
2014-10-12 12:47:04 +02:00
|
|
|
else
|
|
|
|
SUNXI_CEDARX_BIN_DIR = $(@D)/libcedarv/linux-armel2
|
|
|
|
endif
|
|
|
|
|
2013-08-07 00:06:47 +02:00
|
|
|
define SUNXI_CEDARX_BUILD_AVHEAP
|
2013-07-20 01:37:54 +02:00
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) \
|
|
|
|
-c $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/avheap.c \
|
|
|
|
-o $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/avheap.o \
|
|
|
|
-I $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap \
|
|
|
|
-I $(SUNXI_CEDARX_BIN_DIR)/
|
|
|
|
$(TARGET_CC) -shared -L./ -Wl,-soname,libavheap.so \
|
|
|
|
-o $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/libavheap.so \
|
|
|
|
$(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/avheap.o
|
|
|
|
endef
|
2014-10-12 12:47:04 +02:00
|
|
|
|
2013-08-07 00:06:47 +02:00
|
|
|
define SUNXI_CEDARX_INSTALL_AVHEAP
|
|
|
|
$(INSTALL) -D -m 755 $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/libavheap.so \
|
|
|
|
$(1)/usr/lib/libavheap.so
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SUNXI_CEDARX_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(SUNXI_CEDARX_BIN_DIR) \
|
|
|
|
$(SUNXI_CEDARX_CONFIGURE_OPTS)
|
|
|
|
$(SUNXI_CEDARX_BUILD_AVHEAP)
|
|
|
|
endef
|
2013-07-20 01:37:54 +02:00
|
|
|
|
|
|
|
define SUNXI_CEDARX_INSTALL_STAGING_CMDS
|
|
|
|
$(INSTALL) -d -m 755 $(STAGING_DIR)/usr/include/libvecore
|
|
|
|
$(INSTALL) -m 664 $(SUNXI_CEDARX_BIN_DIR)/libvecore/*.h \
|
|
|
|
$(STAGING_DIR)/usr/include/libvecore
|
|
|
|
$(INSTALL) -m 644 $(SUNXI_CEDARX_BIN_DIR)/*.h \
|
|
|
|
$(STAGING_DIR)/usr/include/
|
|
|
|
$(INSTALL) -D -m 755 $(SUNXI_CEDARX_BIN_DIR)/libvecore/libvecore.so \
|
|
|
|
$(STAGING_DIR)/usr/lib/libvecore.so
|
2013-08-07 00:06:47 +02:00
|
|
|
$(call SUNXI_CEDARX_INSTALL_AVHEAP, $(STAGING_DIR))
|
2013-07-20 01:37:54 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define SUNXI_CEDARX_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 755 $(SUNXI_CEDARX_BIN_DIR)/libvecore/libvecore.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/libvecore.so
|
2013-08-07 00:06:47 +02:00
|
|
|
$(call SUNXI_CEDARX_INSTALL_AVHEAP, $(TARGET_DIR))
|
2013-07-20 01:37:54 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|