|
@ -3,159 +3,87 @@ |
|
|
#
|
|
|
#
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
N_INST_DIR ?= $(TARGET_DIR) |
|
|
NEUTRINO_INST_DIR ?= $(TARGET_DIR) |
|
|
N_OBJ_DIR = $(BUILD_DIR)/$(NI-NEUTRINO) |
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
NEUTRINO_BUILD_DIR = $(BUILD_DIR)/$(NI-NEUTRINO) |
|
|
|
|
|
LIBSTB-HAL_BUILD_DIR = $(BUILD_DIR)/$(NI-LIBSTB-HAL) |
|
|
N_DEPS = |
|
|
|
|
|
N_DEPS += ffmpeg |
|
|
|
|
|
N_DEPS += freetype |
|
|
|
|
|
N_DEPS += giflib |
|
|
|
|
|
N_DEPS += libcurl |
|
|
|
|
|
N_DEPS += libdvbsi |
|
|
|
|
|
N_DEPS += fribidi |
|
|
|
|
|
N_DEPS += libjpeg-turbo |
|
|
|
|
|
N_DEPS += libsigc |
|
|
|
|
|
N_DEPS += lua |
|
|
|
|
|
N_DEPS += ntp |
|
|
|
|
|
N_DEPS += openssl |
|
|
|
|
|
N_DEPS += openthreads |
|
|
|
|
|
N_DEPS += pugixml |
|
|
|
|
|
N_DEPS += zlib |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(BOXMODEL), $(filter $(BOXMODEL), vusolo4k vuduo4k vuduo4kse vuultimo4k vuuno4kse)) |
|
|
|
|
|
N_DEPS += graphlcd-base |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(BOXTYPE), coolstream) |
|
|
# -----------------------------------------------------------------------------
|
|
|
N_DEPS += coolstream-drivers |
|
|
|
|
|
ifeq ($(HAS_LIBCS), yes) |
|
|
|
|
|
N_DEPS += libcoolstream |
|
|
|
|
|
endif |
|
|
|
|
|
else |
|
|
|
|
|
N_DEPS += libstb-hal |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
# uncomment next lines to build neutrino without --enable-ffmpegdec
|
|
|
NEUTRINO_DEPS = |
|
|
#N_DEPS += libFLAC
|
|
|
NEUTRINO_DEPS += ffmpeg |
|
|
#N_DEPS += libid3tag
|
|
|
NEUTRINO_DEPS += freetype |
|
|
#N_DEPS += libmad
|
|
|
NEUTRINO_DEPS += giflib |
|
|
#N_DEPS += libvorbisidec
|
|
|
NEUTRINO_DEPS += libcurl |
|
|
|
|
|
NEUTRINO_DEPS += libdvbsi |
|
|
|
|
|
NEUTRINO_DEPS += fribidi |
|
|
|
|
|
NEUTRINO_DEPS += libjpeg-turbo |
|
|
|
|
|
NEUTRINO_DEPS += libsigc |
|
|
|
|
|
NEUTRINO_DEPS += lua |
|
|
|
|
|
NEUTRINO_DEPS += ntp |
|
|
|
|
|
NEUTRINO_DEPS += openssl |
|
|
|
|
|
NEUTRINO_DEPS += openthreads |
|
|
|
|
|
NEUTRINO_DEPS += pugixml |
|
|
|
|
|
NEUTRINO_DEPS += zlib |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
N_CFLAGS = -Wall -W -Wshadow -D__STDC_CONSTANT_MACROS |
|
|
NEUTRINO_CFLAGS = -Wall -W -Wshadow -D__STDC_CONSTANT_MACROS |
|
|
ifeq ($(BOXSERIES), hd1) |
|
|
ifeq ($(BOXSERIES), hd1) |
|
|
N_CFLAGS += -DCPU_FREQ |
|
|
NEUTRINO_CFLAGS += -DCPU_FREQ |
|
|
endif |
|
|
endif |
|
|
ifeq ($(BOXSERIES), hd2) |
|
|
ifeq ($(BOXSERIES), hd2) |
|
|
N_CFLAGS += -DFB_HW_ACCELERATION |
|
|
NEUTRINO_CFLAGS += -DFB_HW_ACCELERATION |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
ifeq ($(DEBUG), yes) |
|
|
ifeq ($(DEBUG), yes) |
|
|
N_CFLAGS += -ggdb3 -rdynamic -I$(TARGET_includedir) |
|
|
NEUTRINO_CFLAGS += -ggdb3 -rdynamic -I$(TARGET_includedir) |
|
|
else |
|
|
else |
|
|
N_CFLAGS += $(TARGET_CFLAGS) |
|
|
NEUTRINO_CFLAGS += $(TARGET_CFLAGS) |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
N_CFLAGS += -Wno-psabi |
|
|
NEUTRINO_CFLAGS += -Wno-psabi |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
N_LDFLAGS = -lcrypto -ldl -lz $(CORTEX-STRINGS_LDFLAG) -L$(TARGET_libdir) |
|
|
NEUTRINO_LDFLAGS = -lcrypto -ldl -lz $(CORTEX-STRINGS_LDFLAG) -L$(TARGET_libdir) |
|
|
ifeq ($(DEBUG), yes) |
|
|
ifeq ($(DEBUG), yes) |
|
|
N_LDFLAGS += -Wl,-rpath-link,$(TARGET_libdir) |
|
|
NEUTRINO_LDFLAGS += -Wl,-rpath-link,$(TARGET_libdir) |
|
|
else |
|
|
else |
|
|
N_LDFLAGS += -Wl,-O1 -Wl,-rpath-link,$(TARGET_libdir) $(TARGET_EXTRA_LDFLAGS) |
|
|
NEUTRINO_LDFLAGS += -Wl,-O1 -Wl,-rpath-link,$(TARGET_libdir) $(TARGET_EXTRA_LDFLAGS) |
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
N_CONFIGURE_DEBUG = |
|
|
|
|
|
ifeq ($(BOXTYPE)-$(HAS_LIBCS), coolstream-yes) |
|
|
|
|
|
ifeq ($(DEBUG), yes) |
|
|
|
|
|
N_CONFIGURE_DEBUG += \
|
|
|
|
|
|
--enable-libcoolstream-static \
|
|
|
|
|
|
--with-libcoolstream-static-dir=$(TARGET_libdir) |
|
|
|
|
|
endif |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
N_CONFIGURE_LIBSTB-HAL = |
|
|
|
|
|
ifneq ($(BOXTYPE), coolstream) |
|
|
|
|
|
N_CONFIGURE_LIBSTB-HAL += \
|
|
|
|
|
|
--with-stb-hal-includes=$(SOURCE_DIR)/$(NI-LIBSTB-HAL)/include \
|
|
|
|
|
|
--with-stb-hal-build=$(LH_OBJ_DIR) |
|
|
|
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
N_CONFIGURE_ADDITIONS = |
|
|
NEUTRINO_OMDB_API_KEY ?= 20711f9e |
|
|
ifeq ($(BOXTYPE), coolstream) |
|
|
NEUTRINO_SHOUTCAST_DEV_KEY ?= fa1669MuiRPorUBw |
|
|
N_CONFIGURE_ADDITIONS += \
|
|
|
NEUTRINO_TMDB_DEV_KEY ?= 7270f1b571c4ecbb5b204ddb7f8939b1 |
|
|
--enable-pip |
|
|
NEUTRINO_YOUTUBE_DEV_KEY ?= AIzaSyBLdZe7M3rpNMZqSj-3IEvjbb2hATWJIdM |
|
|
endif |
|
|
NEUTRINO_WEATHER_DEV_KEY ?= |
|
|
ifeq ($(BOXTYPE), armbox) |
|
|
|
|
|
N_CONFIGURE_ADDITIONS += \
|
|
|
|
|
|
--disable-arm-acc |
|
|
|
|
|
endif |
|
|
|
|
|
ifeq ($(BOXTYPE), mipsbox) |
|
|
|
|
|
N_CONFIGURE_ADDITIONS += \
|
|
|
|
|
|
--disable-mips-acc |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
N_OMDB_API_KEY ?= 20711f9e |
|
|
NEUTRINO_CONF_ENV = \
|
|
|
N_SHOUTCAST_DEV_KEY ?= fa1669MuiRPorUBw |
|
|
|
|
|
N_TMDB_DEV_KEY ?= 7270f1b571c4ecbb5b204ddb7f8939b1 |
|
|
|
|
|
N_YOUTUBE_DEV_KEY ?= AIzaSyBLdZe7M3rpNMZqSj-3IEvjbb2hATWJIdM |
|
|
|
|
|
N_WEATHER_DEV_KEY ?= |
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd1 hd2)) |
|
|
|
|
|
N_BOXMODEL = $(BOXSERIES) |
|
|
|
|
|
else |
|
|
|
|
|
N_BOXMODEL = $(BOXMODEL) |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
N_MAKE_ENV = \
|
|
|
|
|
|
$(MAKE_OPTS) \
|
|
|
$(MAKE_OPTS) \
|
|
|
\
|
|
|
\
|
|
|
CFLAGS="$(N_CFLAGS)" \
|
|
|
CFLAGS="$(NEUTRINO_CFLAGS)" \
|
|
|
CPPFLAGS="$(N_CFLAGS)" \
|
|
|
CPPFLAGS="$(NEUTRINO_CFLAGS)" \
|
|
|
CXXFLAGS="$(N_CFLAGS) -std=c++11" \
|
|
|
CXXFLAGS="$(NEUTRINO_CFLAGS) -std=c++11" \
|
|
|
LDFLAGS="$(N_LDFLAGS)" |
|
|
LDFLAGS="$(NEUTRINO_LDFLAGS)" |
|
|
|
|
|
|
|
|
N_MAKE_ENV += \
|
|
|
NEUTRINO_CONF_ENV += \
|
|
|
PKG_CONFIG=$(PKG_CONFIG) \
|
|
|
PKG_CONFIG=$(PKG_CONFIG) \
|
|
|
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) |
|
|
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
$(N_OBJ_DIR)/config.status: $(N_DEPS) |
|
|
NEUTRINO_CONF_OPTS = \
|
|
|
test -d $(N_OBJ_DIR) || mkdir -p $(N_OBJ_DIR) |
|
|
|
|
|
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO); \
|
|
|
|
|
|
git checkout $(NI-NEUTRINO_BRANCH) |
|
|
|
|
|
$(SOURCE_DIR)/$(NI-NEUTRINO)/autogen.sh |
|
|
|
|
|
$(CD) $(N_OBJ_DIR); \
|
|
|
|
|
|
$(N_MAKE_ENV) \
|
|
|
|
|
|
$(SOURCE_DIR)/$(NI-NEUTRINO)/configure \
|
|
|
|
|
|
--host=$(TARGET) \
|
|
|
--host=$(TARGET) \
|
|
|
--build=$(BUILD) \
|
|
|
--build=$(BUILD) \
|
|
|
--prefix=$(prefix) \
|
|
|
--prefix=$(prefix) \
|
|
|
$(N_CONFIGURE_DEBUG) \
|
|
|
|
|
|
--enable-maintainer-mode \
|
|
|
--enable-maintainer-mode \
|
|
|
--enable-silent-rules \
|
|
|
--enable-silent-rules \
|
|
|
\
|
|
|
\
|
|
|
$(N_CONFIGURE_ADDITIONS) \
|
|
|
|
|
|
--enable-ffmpegdec \
|
|
|
|
|
|
--enable-flac \
|
|
|
|
|
|
--enable-freesatepg \
|
|
|
--enable-freesatepg \
|
|
|
--enable-fribidi \
|
|
|
--enable-fribidi \
|
|
|
--enable-giflib \
|
|
|
--enable-giflib \
|
|
@ -163,25 +91,84 @@ $(N_OBJ_DIR)/config.status: $(N_DEPS) |
|
|
--enable-mdev \
|
|
|
--enable-mdev \
|
|
|
--enable-pugixml \
|
|
|
--enable-pugixml \
|
|
|
\
|
|
|
\
|
|
|
--with-omdb-api-key="$(N_OMDB_API_KEY)" \
|
|
|
--with-omdb-api-key="$(NEUTRINO_OMDB_API_KEY)" \
|
|
|
--with-shoutcast-dev-key="$(N_SHOUTCAST_DEV_KEY)" \
|
|
|
--with-shoutcast-dev-key="$(NEUTRINO_SHOUTCAST_DEV_KEY)" \
|
|
|
--with-tmdb-dev-key="$(N_TMDB_DEV_KEY)" \
|
|
|
--with-tmdb-dev-key="$(NEUTRINO_TMDB_DEV_KEY)" \
|
|
|
--with-youtube-dev-key="$(N_YOUTUBE_DEV_KEY)" \
|
|
|
--with-youtube-dev-key="$(NEUTRINO_YOUTUBE_DEV_KEY)" \
|
|
|
--with-weather-dev-key="$(N_WEATHER_DEV_KEY)" \
|
|
|
--with-weather-dev-key="$(NEUTRINO_WEATHER_DEV_KEY)" \
|
|
|
\
|
|
|
\
|
|
|
$(N_CONFIGURE_LIBSTB-HAL) \
|
|
|
|
|
|
--with-tremor \
|
|
|
|
|
|
--with-target=cdk \
|
|
|
--with-target=cdk \
|
|
|
--with-targetprefix=$(prefix) \
|
|
|
--with-targetprefix=$(prefix) \
|
|
|
--with-boxtype=$(BOXTYPE) \
|
|
|
--with-boxtype=$(BOXTYPE) |
|
|
--with-boxmodel=$(N_BOXMODEL) |
|
|
|
|
|
|
|
|
ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd1 hd2)) |
|
|
|
|
|
NEUTRINO_CONF_OPTS += --with-boxmodel=$(BOXSERIES) |
|
|
|
|
|
else |
|
|
|
|
|
NEUTRINO_CONF_OPTS += --with-boxmodel=$(BOXMODEL) |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(BOXTYPE), coolstream) |
|
|
|
|
|
NEUTRINO_DEPS += coolstream-drivers |
|
|
|
|
|
ifeq ($(HAS_LIBCS), yes) |
|
|
|
|
|
NEUTRINO_DEPS += libcoolstream |
|
|
|
|
|
ifeq ($(DEBUG), yes) |
|
|
|
|
|
NEUTRINO_CONF_OPTS += \
|
|
|
|
|
|
--enable-libcoolstream-static \
|
|
|
|
|
|
--with-libcoolstream-static-dir=$(TARGET_libdir) |
|
|
|
|
|
endif |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
NEUTRINO_CONF_OPTS += --enable-pip |
|
|
|
|
|
else |
|
|
|
|
|
NEUTRINO_DEPS += libstb-hal |
|
|
|
|
|
NEUTRINO_CONF_OPTS += \
|
|
|
|
|
|
--with-stb-hal-includes=$(SOURCE_DIR)/$(NI-LIBSTB-HAL)/include \
|
|
|
|
|
|
--with-stb-hal-build=$(LIBSTB-HAL_BUILD_DIR) |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(BOXTYPE), armbox) |
|
|
|
|
|
NEUTRINO_CONF_OPTS += --disable-arm-acc |
|
|
|
|
|
endif |
|
|
|
|
|
ifeq ($(BOXTYPE), mipsbox) |
|
|
|
|
|
NEUTRINO_CONF_OPTS += --disable-mips-acc |
|
|
|
|
|
endif |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
# enable ffmpeg audio decoder in neutrino
|
|
|
|
|
|
NEUTRINO_AUDIODEC = ffmpeg |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(NEUTRINO_AUDIODEC), ffmpeg) |
|
|
|
|
|
NEUTRINO_CONF_OPTS += --enable-ffmpegdec |
|
|
|
|
|
else |
|
|
|
|
|
NEUTRINO_DEPS += libid3tag |
|
|
|
|
|
NEUTRINO_DEPS += libmad |
|
|
|
|
|
|
|
|
|
|
|
NEUTRINO_DEPS += libvorbisidec |
|
|
|
|
|
NEUTRINO_CONF_OPTS += --with-tremor |
|
|
|
|
|
|
|
|
|
|
|
NEUTRINO_DEPS += flac |
|
|
|
|
|
NEUTRINO_CONF_OPTS += --enable-flac |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
neutrino: $(N_OBJ_DIR)/config.status |
|
|
$(NEUTRINO_BUILD_DIR)/config.status: $(NEUTRINO_DEPS) |
|
|
|
|
|
test -d $(NEUTRINO_BUILD_DIR) || mkdir -p $(NEUTRINO_BUILD_DIR) |
|
|
|
|
|
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO); \
|
|
|
|
|
|
git checkout $(NI-NEUTRINO_BRANCH) |
|
|
|
|
|
$(SOURCE_DIR)/$(NI-NEUTRINO)/autogen.sh |
|
|
|
|
|
$(CD) $(NEUTRINO_BUILD_DIR); \
|
|
|
|
|
|
$(NEUTRINO_CONF_ENV) \
|
|
|
|
|
|
$(SOURCE_DIR)/$(NI-NEUTRINO)/configure \
|
|
|
|
|
|
$(NEUTRINO_CONF_OPTS) |
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
neutrino: $(NEUTRINO_BUILD_DIR)/config.status |
|
|
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
|
|
|
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
|
|
|
$(MAKE) -C $(N_OBJ_DIR) all DESTDIR=$(TARGET_DIR) |
|
|
$(MAKE) -C $(NEUTRINO_BUILD_DIR) all DESTDIR=$(TARGET_DIR) |
|
|
$(MAKE) -C $(N_OBJ_DIR) install DESTDIR=$(N_INST_DIR) |
|
|
$(MAKE) -C $(NEUTRINO_BUILD_DIR) install DESTDIR=$(NEUTRINO_INST_DIR) |
|
|
$(MAKE) $(TARGET_sysconfdir)/init.d/start_neutrino |
|
|
$(MAKE) $(TARGET_sysconfdir)/init.d/start_neutrino |
|
|
$(TOUCH) |
|
|
$(TOUCH) |
|
|
|
|
|
|
|
@ -192,22 +179,18 @@ $(TARGET_sysconfdir)/init.d/start_neutrino: |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
LH_OBJ_DIR = $(BUILD_DIR)/$(NI-LIBSTB-HAL) |
|
|
LIBSTB-HAL_DEPS = |
|
|
|
|
|
LIBSTB-HAL_DEPS += ffmpeg |
|
|
|
|
|
LIBSTB-HAL_DEPS += openthreads |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
LH_DEPS = |
|
|
LIBSTB-HAL_CONF_ENV = \
|
|
|
LH_DEPS += ffmpeg |
|
|
$(NEUTRINO_CONF_ENV) |
|
|
LH_DEPS += openthreads |
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
$(LH_OBJ_DIR)/config.status: $(LH_DEPS) |
|
|
LIBSTB-HAL_CONF_OPTS = \
|
|
|
test -d $(LH_OBJ_DIR) || mkdir -p $(LH_OBJ_DIR) |
|
|
|
|
|
$(SOURCE_DIR)/$(NI-LIBSTB-HAL)/autogen.sh |
|
|
|
|
|
$(CD) $(LH_OBJ_DIR); \
|
|
|
|
|
|
$(N_MAKE_ENV) \
|
|
|
|
|
|
$(SOURCE_DIR)/$(NI-LIBSTB-HAL)/configure \
|
|
|
|
|
|
--host=$(TARGET) \
|
|
|
--host=$(TARGET) \
|
|
|
--build=$(BUILD) \
|
|
|
--build=$(BUILD) \
|
|
|
--prefix=$(prefix) \
|
|
|
--prefix=$(prefix) \
|
|
@ -217,15 +200,30 @@ $(LH_OBJ_DIR)/config.status: $(LH_DEPS) |
|
|
\
|
|
|
\
|
|
|
--with-target=cdk \
|
|
|
--with-target=cdk \
|
|
|
--with-targetprefix=$(prefix) \
|
|
|
--with-targetprefix=$(prefix) \
|
|
|
--with-boxtype=$(BOXTYPE) \
|
|
|
--with-boxtype=$(BOXTYPE) |
|
|
--with-boxmodel=$(N_BOXMODEL) |
|
|
|
|
|
|
|
|
ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd1 hd2)) |
|
|
|
|
|
LIBSTB-HAL_CONF_OPTS += --with-boxmodel=$(BOXSERIES) |
|
|
|
|
|
else |
|
|
|
|
|
LIBSTB-HAL_CONF_OPTS += --with-boxmodel=$(BOXMODEL) |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
$(LIBSTB-HAL_BUILD_DIR)/config.status: $(LIBSTB-HAL_DEPS) |
|
|
|
|
|
test -d $(LIBSTB-HAL_BUILD_DIR) || mkdir -p $(LIBSTB-HAL_BUILD_DIR) |
|
|
|
|
|
$(SOURCE_DIR)/$(NI-LIBSTB-HAL)/autogen.sh |
|
|
|
|
|
$(CD) $(LIBSTB-HAL_BUILD_DIR); \
|
|
|
|
|
|
$(LIBSTB-HAL_CONF_ENV) \
|
|
|
|
|
|
$(SOURCE_DIR)/$(NI-LIBSTB-HAL)/configure \
|
|
|
|
|
|
$(LIBSTB-HAL_CONF_OPTS) |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
libstb-hal: $(LH_OBJ_DIR)/config.status |
|
|
libstb-hal: $(LIBSTB-HAL_BUILD_DIR)/config.status |
|
|
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
|
|
|
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
|
|
|
$(MAKE) -C $(LH_OBJ_DIR) all DESTDIR=$(TARGET_DIR) |
|
|
$(MAKE) -C $(LIBSTB-HAL_BUILD_DIR) all DESTDIR=$(TARGET_DIR) |
|
|
$(MAKE) -C $(LH_OBJ_DIR) install DESTDIR=$(N_INST_DIR) |
|
|
$(MAKE) -C $(LIBSTB-HAL_BUILD_DIR) install DESTDIR=$(NEUTRINO_INST_DIR) |
|
|
$(REWRITE_LIBTOOL_LA) |
|
|
$(REWRITE_LIBTOOL_LA) |
|
|
$(TOUCH) |
|
|
$(TOUCH) |
|
|
|
|
|
|
|
@ -235,10 +233,10 @@ neutrino-bin: |
|
|
ifeq ($(CLEAN), yes) |
|
|
ifeq ($(CLEAN), yes) |
|
|
$(MAKE) neutrino-clean |
|
|
$(MAKE) neutrino-clean |
|
|
endif |
|
|
endif |
|
|
$(MAKE) $(N_OBJ_DIR)/config.status |
|
|
$(MAKE) $(NEUTRINO_BUILD_DIR)/config.status |
|
|
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
|
|
|
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
|
|
|
$(MAKE) -C $(N_OBJ_DIR) all DESTDIR=$(TARGET_DIR) |
|
|
$(MAKE) -C $(NEUTRINO_BUILD_DIR) all DESTDIR=$(TARGET_DIR) |
|
|
$(INSTALL_EXEC) -D $(N_OBJ_DIR)/src/neutrino $(TARGET_bindir)/neutrino |
|
|
$(INSTALL_EXEC) -D $(NEUTRINO_BUILD_DIR)/src/neutrino $(TARGET_bindir)/neutrino |
|
|
ifneq ($(DEBUG), yes) |
|
|
ifneq ($(DEBUG), yes) |
|
|
$(TARGET_STRIP) $(TARGET_bindir)/neutrino |
|
|
$(TARGET_STRIP) $(TARGET_bindir)/neutrino |
|
|
endif |
|
|
endif |
|
@ -247,33 +245,33 @@ endif |
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
neutrino-uninstall: |
|
|
neutrino-uninstall: |
|
|
-make -C $(N_OBJ_DIR) uninstall DESTDIR=$(TARGET_DIR) |
|
|
-make -C $(NEUTRINO_BUILD_DIR) uninstall DESTDIR=$(TARGET_DIR) |
|
|
|
|
|
|
|
|
neutrino-distclean: |
|
|
neutrino-distclean: |
|
|
-make -C $(N_OBJ_DIR) distclean |
|
|
-make -C $(NEUTRINO_BUILD_DIR) distclean |
|
|
|
|
|
|
|
|
neutrino-clean: neutrino-uninstall neutrino-distclean |
|
|
neutrino-clean: neutrino-uninstall neutrino-distclean |
|
|
rm -f $(N_OBJ_DIR)/config.status |
|
|
rm -f $(NEUTRINO_BUILD_DIR)/config.status |
|
|
rm -f $(DEPS_DIR)/neutrino |
|
|
rm -f $(DEPS_DIR)/neutrino |
|
|
rm -f $(TARGET_sysconfdir)/init.d/start_neutrino |
|
|
rm -f $(TARGET_sysconfdir)/init.d/start_neutrino |
|
|
|
|
|
|
|
|
neutrino-clean-all: neutrino-clean |
|
|
neutrino-clean-all: neutrino-clean |
|
|
rm -rf $(N_OBJ_DIR) |
|
|
rm -rf $(NEUTRINO_BUILD_DIR) |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
libstb-hal-uninstall: |
|
|
libstb-hal-uninstall: |
|
|
-make -C $(LH_OBJ_DIR) uninstall DESTDIR=$(TARGET_DIR) |
|
|
-make -C $(LIBSTB-HAL_BUILD_DIR) uninstall DESTDIR=$(TARGET_DIR) |
|
|
|
|
|
|
|
|
libstb-hal-distclean: |
|
|
libstb-hal-distclean: |
|
|
-make -C $(LH_OBJ_DIR) distclean |
|
|
-make -C $(LIBSTB-HAL_BUILD_DIR) distclean |
|
|
|
|
|
|
|
|
libstb-hal-clean: libstb-hal-uninstall libstb-hal-distclean |
|
|
libstb-hal-clean: libstb-hal-uninstall libstb-hal-distclean |
|
|
rm -f $(LH_OBJ_DIR)/config.status |
|
|
rm -f $(LIBSTB-HAL_BUILD_DIR)/config.status |
|
|
rm -f $(DEPS_DIR)/libstb-hal |
|
|
rm -f $(DEPS_DIR)/libstb-hal |
|
|
|
|
|
|
|
|
libstb-hal-clean-all: libstb-hal-clean |
|
|
libstb-hal-clean-all: libstb-hal-clean |
|
|
rm -rf $(LH_OBJ_DIR) |
|
|
rm -rf $(LIBSTB-HAL_BUILD_DIR) |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|