Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transmission for DS509+ (#4055) #4056

Merged
merged 1 commit into from
Jul 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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