From: Markham Date: Sun, 28 Jan 2018 14:32:35 +0000 (+0100) Subject: strip TARGETPREFIX/bin/neutrino if no debug X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=6e11935a3cc115cf5e8d28a683538230ae789695;p=bs-cst-neutrino-hd.git strip TARGETPREFIX/bin/neutrino if no debug --- diff --git a/make/environment.mk b/make/environment.mk index aebe0b4..d77524c 100755 --- a/make/environment.mk +++ b/make/environment.mk @@ -5,6 +5,7 @@ include $(BASE_DIR)/config # crosstool puts "...-glibc-2.3.6-tls" configs still into "...-glibc-2.3.6" CROSS_BUILD_DIR = $(CROSS_BUILD_VERSION:-tls=) +DEBUG ?= "no" SKEL_ROOT_DIR ?= "" PLUGIN_PATH ?= "" diff --git a/make/neutrino.mk b/make/neutrino.mk index 0465ff1..34b4c01 100755 --- a/make/neutrino.mk +++ b/make/neutrino.mk @@ -90,6 +90,9 @@ $(D)/neutrino-hd: $(NEUTRINO_OBJDIR)/config.status $(START_BUILD) $(MAKE) -C $(NEUTRINO_OBJDIR) all $(MAKE) -C $(NEUTRINO_OBJDIR) install DESTDIR=$(TARGETPREFIX) + if [ $(DEBUG) != "yes" ]; then \ + $(TARGET)-strip $(TARGETPREFIX)/bin/neutrino; \ + fi $(MAKE) neutrino-version cp -a $(BUILD_TMP)/neutrino-hd/config.h $(TARGETPREFIX)/include/config.h # touch $@