From 17c39e441ad7860acb211d08d8fb7eb60a84cb35 Mon Sep 17 00:00:00 2001 From: Tobias Hintze Date: Wed, 5 Oct 2016 00:06:12 +0200 Subject: [PATCH] [build] inject PKG_VERSION as VERSION * for -V display --- openwrt/freewtp/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/openwrt/freewtp/Makefile b/openwrt/freewtp/Makefile index 5ddd681..0a69e01 100644 --- a/openwrt/freewtp/Makefile +++ b/openwrt/freewtp/Makefile @@ -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