mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-02-22 12:23:28 +01:00
<empty commit message>
This commit is contained in:
parent
1e60c17e6b
commit
971df94748
2 changed files with 9 additions and 2 deletions
9
Makefile
9
Makefile
|
|
@ -20,6 +20,8 @@ PKG_CONFIG_DEPENDS:= \
|
|||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
CWMP_REVISION:=$(shell svnversion $(PWD) -n|cut -f2 -d:)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/cwmp/Default
|
||||
|
|
@ -60,6 +62,13 @@ endif
|
|||
|
||||
TARGET_CFLAGS += \
|
||||
-D_GNU_SOURCE
|
||||
|
||||
ifneq ($(CWMP_REVISION)_,_)
|
||||
ifneq ($(CWMP_REVISION),exported)
|
||||
TARGET_CFLAGS += -DCWMP_REVISION=\"$(CWMP_REVISION)\"
|
||||
TARGET_LDFLAGS += -DCWMP_REVISION=\"$(CWMP_REVISION)\"
|
||||
endif
|
||||
endif
|
||||
|
||||
TARGET_LDFLAGS += \
|
||||
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@ cwmpd_LDADD = \
|
|||
$(LIBZSTREAM_LIBS) \
|
||||
$(LIBPTHREAD_LIBS)
|
||||
|
||||
CWMP_REVISION=$(shell svnversion $(PWD) -n|cut -f2 -d:)
|
||||
|
||||
cwmpd_CFLAGS+=-DCWMP_VERSION=\"$(CWMP_VERSION)\"
|
||||
cwmpd_LDFLAGS+=-DCWMP_VERSION=\"$(CWMP_VERSION)\"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue