Skip to content

Commit

Permalink
fix noarch in dsm7
Browse files Browse the repository at this point in the history
simple hack to set os_min_ver to 7.0-4000

build using: make noarch-7.0 or make noarch-6.1
build must be clean between builds

SynoCommunity#4215 (comment)
  • Loading branch information
publicarray committed Feb 1, 2021
1 parent 2a68aec commit 9225960
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mk/spksrc.spk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ OS_MIN_VER = 3.1-1594
FIRMWARE = $(OS_MIN_VER)
endif

ifeq ($(shell expr "$(TCVERSION)" \>= 7.0),1)
TC_VERS=$(TCVERSION)
SPK_TCVERS=$(TCVERSION)
include ../../mk/spksrc.tc-vers.mk
TC_OS_MIN_VER = $(word 1,$(subst ., ,$(TC_VERS))).$(word 2,$(subst ., ,$(TC_VERS)))-$(TC_BUILD)
endif

SPK_FILE_NAME = $(PACKAGES_DIR)/$(SPK_NAME)_$(SPK_NAME_ARCH)-$(SPK_TCVERS)_$(SPK_VERS)-$(SPK_REV).spk

#####
Expand Down Expand Up @@ -452,6 +459,10 @@ publish-legacy-toolchain-%:
done \

####
noarch-%:
@$(MSG) Building package for noarch $*
-@MAKEFLAGS= $(MAKE) ARCH= TCVERSION=$(if $(findstring $*,$(basename $(subst -,.,$(basename $(subst .,,$*))))),$(DEFAULT_TC),$(notdir $(subst -,/,$*)))


arch-%:
@$(MSG) Building package for arch $*
Expand Down

0 comments on commit 9225960

Please sign in to comment.