Skip to content

Commit

Permalink
transmission: fix for ppc, DS509+ (SynoCommunity#4056)
Browse files Browse the repository at this point in the history
- add toolchain for ppc853x-4.2
- fix build of transmission 3.00 for ppc853x and ppc824x with TCVERSION < 5
- avoid generation and include of cert.pem
Fixes SynoCommunity#4055
  • Loading branch information
hgy59 authored Jul 29, 2020
1 parent a744aa8 commit 944f835
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cross/transmission/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@ LICENSE = GPLv2/GPLv3
GNU_CONFIGURE = 1
CONFIGURE_ARGS = HAVE_CXX=yes --disable-nls --enable-daemon --enable-utp

ifeq ($(findstring $(ARCH), ppc824x ppc853x),$(ARCH))
ifneq (5,$(firstword $(sort $(TCVERSION) 5)))
# toolchains before version 5 require the old linux quota version
# related issue: https://github.com/transmission/transmission/issues/591
ADDITIONAL_CFLAGS = -D_LINUX_QUOTA_VERSION=1
endif
endif


include ../../mk/spksrc.cross-cc.mk
4 changes: 4 additions & 0 deletions spk/transmission/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ POST_STRIP_TARGET = transmission_extra_install
BUSYBOX_CONFIG = usrmng
ENV += BUSYBOX_CONFIG="$(BUSYBOX_CONFIG)"

# build cross/curl without bundle of ca certificates (cert.pem)
export CURL_SKIP_CA_BUNDLE = true

include ../../mk/spksrc.spk.mk


.PHONY: transmission_extra_install
transmission_extra_install:
install -m 755 -d $(STAGING_DIR)/var
Expand Down
21 changes: 21 additions & 0 deletions toolchains/syno-ppc853x-4.2/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
TC_NAME = syno-$(TC_ARCH)

TC_ARCH = ppc853x
TC_VERS = 4.2
TC_FIRMWARE = 3.1-1594

TC_DIST = gcc343_glibc234_ppc853x-GPL
TC_EXT = tgz
TC_DIST_NAME = $(TC_DIST).$(TC_EXT)
TC_DIST_SITE = https://sourceforge.net/projects/dsgpl/files/DSM%204.2%20Tool%20Chains/PowerPC%20853x%20Linux%202.6.32

TC_BASE_DIR = powerpc-linux-gnuspe
TC_PREFIX = powerpc-linux-gnuspe
TC_TARGET = powerpc-unknown-linux

TC_CFLAGS = -I$(WORK_DIR)/$(TC_BASE_DIR)/$(TC_BASE_DIR)/include -mcpu=8548 -mhard-float -mfloat-gprs=double
TC_CPPFLAGS = -I$(WORK_DIR)/$(TC_BASE_DIR)/$(TC_BASE_DIR)/include -mcpu=8548 -mhard-float -mfloat-gprs=double
TC_CXXFLAGS = -I$(WORK_DIR)/$(TC_BASE_DIR)/$(TC_BASE_DIR)/include -mcpu=8548 -mhard-float -mfloat-gprs=double
TC_LDFLAGS = -L$(WORK_DIR)/$(TC_BASE_DIR)/$(TC_BASE_DIR)/lib

include ../../mk/spksrc.tc.mk
3 changes: 3 additions & 0 deletions toolchains/syno-ppc853x-4.2/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gcc343_glibc234_ppc853x-GPL.tgz SHA1 ef5054f30d87a06ab287e86c5e2e123467073111
gcc343_glibc234_ppc853x-GPL.tgz SHA256 eab4aebf489374abc3a5334c139b3cb97a238a4c2b2fb0db3cac66b668bc7103
gcc343_glibc234_ppc853x-GPL.tgz MD5 1bcea0556c50a538e3142b9706c283b7

0 comments on commit 944f835

Please sign in to comment.