Skip to content

Commit

Permalink
fix noarch for dsm7
Browse files Browse the repository at this point in the history
- use noarch-dsm7 to distinguish from noach-all
- use different work dirs for all and dsm7
- incorporate SynoCommunity#4392
- followup of 05c2383 to avoid to clean between builds
  • Loading branch information
hgy59 authored and publicarray committed Feb 21, 2021
1 parent e982641 commit d71e651
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion mk/spksrc.directories.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# * all goes in $(WORK_DIR) : work-arch, or simple work, in the current directory
# * all goes in $(WORK_DIR) : work-arch (for noarch: work-all or work-dsm7), in the current directory
# * it will be installed in $(INSTALL_PREFIX) on the target system (/usr/local/transmission)
# * each source package is unpacked in $(WORK_DIR)
# * the install target installs files in $(WORK_DIR)/install/, known as $(INSTALL_DIR)
Expand Down
19 changes: 7 additions & 12 deletions mk/spksrc.spk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ TC = syno$(ARCH_SUFFIX)
else
SPK_ARCH = noarch
SPK_NAME_ARCH = noarch
ifeq ($(shell expr "$(TCVERSION)" \>= 7.0),1)
SPK_TCVERS = dsm7
OS_MIN_VER = 7.0-4000
else
SPK_TCVERS = all
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)
ARCH_SUFFIX = -$(SPK_TCVERS)
FIRMWARE = $(OS_MIN_VER)
endif

SPK_FILE_NAME = $(PACKAGES_DIR)/$(SPK_NAME)_$(SPK_NAME_ARCH)-$(SPK_TCVERS)_$(SPK_VERS)-$(SPK_REV).spk
Expand Down Expand Up @@ -293,7 +292,7 @@ else
endif
@$(MSG) "Creating PACKAGE_ICON_256.PNG for $(SPK_NAME)"
(convert $(SPK_ICON) -thumbnail 256x256 -strip - > $(WORK_DIR)/PACKAGE_ICON_256.PNG)
$(eval SPK_CONTENT += PACKAGE_ICON.PNG PACKAGE_ICON_256.PNG)
$(eval SPK_CONTENT += PACKAGE_ICON.PNG PACKAGE_ICON_256.PNG)
endif

.PHONY: info-checksum
Expand Down Expand Up @@ -459,10 +458,6 @@ 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 d71e651

Please sign in to comment.