[build] inject PKG_VERSION as VERSION

* for -V display
This commit is contained in:
Tobias Hintze 2016-10-05 00:06:12 +02:00
parent 7e8be72647
commit 17c39e441a
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ endef
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl3
define Build/Compile/wtp
printf '#undef VERSION\n#define VERSION "'$(PKG_VERSION)'"\n' >> $(PKG_BUILD_DIR)/lib/config.h
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
all