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

Add generic spksrc.supported.mk #6002

Merged
merged 42 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from 41 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
e999b56
cross-cc.mk: Make usage of generic spksrc.supported.mk
th0ma7 Feb 1, 2024
4a94ab8
common.mk: Adjust pstat filename
th0ma7 Feb 1, 2024
be1ab5d
python311: Transparent change to force builds
th0ma7 Feb 1, 2024
4ec7f6e
cross-rust.mk: Use generic spksrc.supported.mk helper
th0ma7 Feb 1, 2024
83bd569
supported.mk: Ensure pre-build-native is a grouped target using &:
th0ma7 Feb 1, 2024
41000d7
cross-go.mk: Use generic spksrc.supported.mk helper
th0ma7 Feb 1, 2024
abed858
cross-go.mk: Fix mod file download missing u+rw flags
th0ma7 Feb 1, 2024
e21343c
spk.mk: Major clean-up and simplification to the build narrative
th0ma7 Feb 3, 2024
ff933f0
spksrc: Rename kernel.mk to cross-kernel.mk
th0ma7 Feb 4, 2024
eda6920
common.mk: Enable PSTAT only with MAKELEVEL <= 2
th0ma7 Feb 4, 2024
e67f30a
cross-rust.mk: Remove kerne-required.mk left over
th0ma7 Feb 6, 2024
096b748
common-rules.mk: Move common rules out of common.mk as multi-loop
th0ma7 Feb 6, 2024
8b2ba9c
spk.mk: Fix PSTAT_TIME to only provide stats on entire arch build
th0ma7 Feb 6, 2024
0bf2042
common-rules.mk: Add make rustup to check rust toolchain status
th0ma7 Feb 6, 2024
7340761
cross-cmake.mk: Make independent from cross-cc.mk
th0ma7 Feb 7, 2024
5ef1053
main-depends.mk: Convert to supported.mk
th0ma7 Feb 7, 2024
4a4bbd1
.gitignore: Add status* to ignore list
th0ma7 Feb 7, 2024
d6aec9b
cross-cmake.mk: Missing download rule dependency
th0ma7 Feb 7, 2024
698780d
Limit PATH populating and allow rustup command from all cross*
th0ma7 Feb 10, 2024
93447b2
supported.mk: Further reduce code duplication
th0ma7 Feb 10, 2024
76f4fcf
Move *tree, <smart>-clean to common-rules and provide native access
th0ma7 Feb 10, 2024
84f86c2
qoriq-rust: Optimize code by including DEPENDS in toolchains
th0ma7 Mar 6, 2024
1fd4c15
spksrc: Basics for a first iteration of framework testing facility
th0ma7 Mar 6, 2024
e6c995b
tc.mk: Re-order depend processing to be done afterwards rustc
th0ma7 Mar 6, 2024
dfd3960
meson+ninja+cmake: Fix build using ninja and allow new *_BASE_DIR
th0ma7 Mar 7, 2024
f114839
gateone: Mark as broken as dependent to python2
th0ma7 Mar 7, 2024
c8dcacb
zstd: Fix build by using new MESON_BASE_DIR variable
th0ma7 Mar 7, 2024
8a97dd3
openjpeg: Add -Wno-dev to avoid unecessary messages
th0ma7 Mar 7, 2024
2b45aca
cross-cmake|ninja.mk: Standadize and simplify configure|buid|install
th0ma7 Mar 10, 2024
ce1fad8
x265: Standardize to using cross-cmake.mk with ninja
th0ma7 Mar 10, 2024
9f1d1bb
spksrc: Migrate from PWD to makefile default CURDIR
th0ma7 Mar 10, 2024
7905add
python.mk: Adjust ROOT path so it can also work from diyspk
th0ma7 Mar 10, 2024
1cab8b6
spksrc: Add native/*/status-build.log file to be ignored by git
th0ma7 Mar 10, 2024
5f50b7e
libwebp: Migrate to cmake+ninja to avoid segfault during build
th0ma7 Mar 10, 2024
0c2f146
cross-cmake.mk: Print out cmake path and version
th0ma7 Mar 10, 2024
38dda7a
mysql-connector-c: Use cmake+ninja to fix post-build installation
th0ma7 Mar 10, 2024
00d069d
test.mk: Additions to the testing facility
th0ma7 Mar 10, 2024
51a5461
patch.mk: Reverting $$PWD to $(CURDIR) change
th0ma7 Mar 10, 2024
3ada4a1
cmake: Enable using ninja by default
th0ma7 Mar 11, 2024
dcf8445
spksrc: Enhancements to the testing framework
th0ma7 Mar 31, 2024
0255238
spksrc: Further enhance framework testing (make test all)
th0ma7 Mar 31, 2024
4132bb7
python311: Remove temporary NOP to force builds
th0ma7 Apr 1, 2024
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
distrib
packages
native/*/work*
native/*/status*
cross/*/work*
cross/*/build*
cross/*/status*
kernel/*/work*
spk/*/work*
spk/*/build*
spk/*/publish*
spk/*/status*
diyspk/*/work*
toolchain/*/work*
toolchain/*/*_done
Expand Down
36 changes: 26 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@

# Include framework self-test
include mk/spksrc.test-rules.mk

AVAILABLE_TCS = $(notdir $(wildcard toolchain/syno-*))
AVAILABLE_ARCHS = $(notdir $(subst syno-,/,$(AVAILABLE_TCS)))
SUPPORTED_SPKS = $(sort $(patsubst spk/%/Makefile,%,$(wildcard spk/*/Makefile)))


ifneq ($(firstword $(MAKECMDGOALS)),test)
all: $(SUPPORTED_SPKS)
endif

all-noarch:
@for spk in $(sort $(dir $(wildcard spk/*/Makefile))) ; \
@for spk in $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile))) ; \
do \
grep -q "override ARCH" "$${spk}/Makefile" && $(MAKE) -C $${spk} ; \
done


ifneq ($(firstword $(MAKECMDGOALS)),test)
clean: $(addsuffix -clean,$(SUPPORTED_SPKS))
clean: native-clean cross-clean
endif

dist-clean: clean
dist-clean: kernel-clean toolchain-clean toolkit-clean
Expand Down Expand Up @@ -50,35 +56,44 @@ cross-clean:
done

spk-clean:
@for spk in $(dir $(wildcard spk/*/Makefile)) ; \
@for spk in $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile))) ; \
do \
$(MAKE) -C $${spk} clean ; \
done

%: spk/%/Makefile
cd $(dir $^) && env $(MAKE)

%-clean: spk/%/Makefile
cd $(dir $^) && env $(MAKE) clean

native-%: native/%/Makefile
cd $(dir $^) && env $(MAKE)

native-%-clean: native/%/Makefile
cd $(dir $^) && env $(MAKE) clean

# build dependency flat list for all packages
dependency-flat:
@echo $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile)))
@for spk in $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile))) ; \
do \
echo "$(MAKE) -s -C $${spk} dependency-flat" ; \
$(MAKE) -s -C $${spk} dependency-flat ; \
done

# build dependency tree for all packages
# and take the tree output only (starting with a tab)
dependency-tree:
@for spk in $(dir $(wildcard spk/*/Makefile)) ; \
@echo $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile)))
@for spk in $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile))) ; \
do \
$(MAKE) -C $${spk} dependency-tree | grep -P "^[\t]" ; \
echo "$(MAKE) --no-print-directory -C $${spk} dependency-tree" ; \
$(MAKE) --no-print-directory -C $${spk} dependency-tree ; \
done

# build dependency list for all packages
dependency-list:
@for spk in $(dir $(wildcard spk/*/Makefile)) ; \
@echo $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile)))
@for spk in $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile))) ; \
do \
echo "$(MAKE) -s -C $${spk} dependency-list" ; \
$(MAKE) -s -C $${spk} dependency-list ; \
done

Expand Down Expand Up @@ -166,6 +181,7 @@ local.mk:
@echo "DISTRIBUTOR_URL =" >> $@
@echo "REPORT_URL =" >> $@
@echo "DEFAULT_TC =" >> $@
@echo "#PSTAT = on" >> $@
@echo "#PARALLEL_MAKE = max" >> $@

dsm-%: local.mk
Expand Down
23 changes: 6 additions & 17 deletions cross/libwebp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,12 @@ HOMEPAGE = https://developers.google.com/speed/webp
COMMENT = WebP codec: library to encode and decode images in WebP format.
LICENSE = https://github.com/webmproject/libwebp/blob/master/COPYING

GNU_CONFIGURE = 1
PRE_CONFIGURE_TARGET = libwebp_pre_configure
CONFIGURE_ARGS = --disable-static
CONFIGURE_ARGS += --enable-libwebpdecoder
CMAKE_USE_NINJA = 1

ADDITIONAL_CPPFLAGS = -O
include ../../mk/spksrc.cross-cmake.mk

include ../../mk/spksrc.common.mk
# newer gcc require definition of -std=c11
ifneq ($(call version_lt,$(TCVERSION),6.1)$(call version_ge,$(TCVERSION),3.0),11)
ifneq ($(findstring $(ARCH),$(ARMv5_ARCHS)),$(ARCH))
ADDITIONAL_CPPFLAGS += -std=c11
# gcc version below 5.x requires enforcing c11
# fallback to default for armv5 using older gcc
ifeq ($(call version_le, $(TC_GCC), 5)$(call version_gt,$(TC_GCC),4.7),11)
ADDITIONAL_CFLAGS += -std=c11
endif
endif

include ../../mk/spksrc.cross-cc.mk

.PHONY: libwebp_pre_configure
libwebp_pre_configure:
$(RUN) ./autogen.sh
1 change: 1 addition & 0 deletions cross/mysql-connector-c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ COMMENT = MySQL C API (libmysqlclient)
LICENSE = GNU GPLv2

USE_NATIVE_CMAKE_LEGACY = 1
CMAKE_USE_NINJA = 1

include ../../mk/spksrc.cross-cmake.mk

Expand Down
1 change: 1 addition & 0 deletions cross/openjpeg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ COMMENT = OpenJPEG is an open-source JPEG 2000 codec written in C language.
LICENSE = BSD 2-clause simplified

CMAKE_USE_NINJA = 1
CMAKE_ARGS += -Wno-dev
CMAKE_ARGS += -DBUILD_STATIC_LIBS=OFF
CMAKE_ARGS += -DOPENJP2_COMPILE_OPTIONS="-O"
# deactivate build of tools (we use the library only)
Expand Down
2 changes: 2 additions & 0 deletions cross/python311/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ PKG_DIST_NAME = Python-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://www.python.org/ftp/python/$(PKG_VERS)
PKG_DIR = Python-$(PKG_VERS)

### NOP

# Platform "powerpc-none-linux-gnuspe" with compiler "gcc" is not supported by the
# CPython core team, see https://peps.python.org/pep-0011/ for more information.
# And compiler must support std=c++11 (OlD_PPC_ARCHS fail, but ARMv5_ARCHS have no issue).
Expand Down
116 changes: 33 additions & 83 deletions cross/x265/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,86 +3,54 @@ PKG_VERS = 3.5
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)_$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://bitbucket.org/multicoreware/x265_git/downloads
PKG_DIR = $(PKG_NAME)_$(PKG_VERS)/source
PKG_DIR = $(PKG_NAME)_$(PKG_VERS)

OPTIONAL_DEPENDS = native/nasm

HOMEPAGE = http://x265.org/
COMMENT = x265 is an open source HEVC encoder.
LICENSE = GPL

CONFIGURE_TARGET = x265_configure
PRE_CONFIGURE_TARGET = x265_pre_configure
PRE_COMPILE_TARGET = x265_pre_compile

CMAKE_ARGS = -DCMAKE_INSTALL_PREFIX=$(INSTALL_PREFIX)
CMAKE_ARGS += -DCMAKE_CROSSCOMPILING=TRUE
CMAKE_ARGS += -DCMAKE_SYSTEM_NAME=Linux
CMAKE_ARGS += -DCMAKE_C_COMPILER=$(TC_PATH)$(TC_PREFIX)gcc
CMAKE_ARGS += -DCMAKE_CXX_COMPILER=$(TC_PATH)$(TC_PREFIX)g++
CMAKE_ARGS += -DCMAKE_INSTALL_RPATH=$(INSTALL_PREFIX)/lib
CMAKE_ARGS += -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE
CMAKE_ARGS += -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE
CMAKE_ARGS += -DENABLE_LIBNUMA=OFF
CMAKE_ARGS += -DENABLE_PIC=ON
#CMAKE_ARGS += -DENABLE_CLI=OFF
CMAKE_USE_NINJA = 1
CMAKE_USE_NASM = 1
CMAKE_SOURCE_DIR = source

# Build directories for default, 12 and 10 bit depth
CMAKE_BUILD_DIR = $(WORK_DIR)/$(PKG_DIR)/buildAll
CMAKE_BUILD_12B = $(WORK_DIR)/$(PKG_DIR)/build12bit
CMAKE_BUILD_10B = $(WORK_DIR)/$(PKG_DIR)/build10bit

# additional cmake args for the build of 10 and 12 bit depth libraries
CMAKE_BITLIB_ARGS =
CMAKE_ARGS_BITLIB += -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF
CMAKE_ARGS_BITLIB += -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DEXTRA_LINK_FLAGS="-ldl"
# provide cmake toolchain path when building bitlibs
CMAKE_ARGS_BITLIB += -DCMAKE_TOOLCHAIN_FILE=$(CMAKE_TOOLCHAIN_PKG)

# additional cmake args for the final multilib build
CMAKE_MULTILIB_ARGS =
ADDITIONAL_CMAKE_ARGS += -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DEXTRA_LINK_FLAGS="-ldl -L."
ADDITIONAL_CMAKE_ARGS += -DLINKED_10BIT=ON -DLINKED_12BIT=ON -DENABLE_SHARED=ON

include ../../mk/spksrc.common.mk

ifeq ($(findstring $(ARCH),$(ARMv5_ARCHS)),$(ARCH))
CMAKE_ARGS += -DCMAKE_SYSTEM_PROCESSOR=armv5
CMAKE_ARGS += -DCROSS_COMPILE_ARM=ON
CMAKE_ARGS += -DENABLE_ASSEMBLY=OFF
endif

ifeq ($(findstring $(ARCH),$(ARMv7_ARCHS) $(ARMv7L_ARCHS)),$(ARCH))
CMAKE_ARGS += -DCMAKE_SYSTEM_PROCESSOR=armv7
CMAKE_ARGS += -DCROSS_COMPILE_ARM=ON
CMAKE_ARGS += -DENABLE_ASSEMBLY=OFF
endif

ifeq ($(findstring $(ARCH),$(ARMv8_ARCHS)),$(ARCH))
CMAKE_ARGS += -DCMAKE_SYSTEM_PROCESSOR=aarch64
CMAKE_ARGS += -DCROSS_COMPILE_ARM=ON
# asm code for HIGH_BIT_DEPTH is not compatible with arm64/aarch64
# https://bitbucket.org/multicoreware/x265_git/issues/549/fail-to-build-for-aarch64-and-armhf
CMAKE_BITLIB_ARGS += -DENABLE_ASSEMBLY=OFF
endif

ifeq ($(findstring $(ARCH),$(PPC_ARCHS)),$(ARCH))
CMAKE_ARGS += -DCMAKE_SYSTEM_PROCESSOR=ppc64
CMAKE_ARGS += -DCMAKE_CXX_FLAGS=-m32
CMAKE_ARGS += -DENABLE_ALTIVEC=OFF
CMAKE_ARGS += -DCPU_POWER8=OFF
ifeq ($(findstring $(ARCH),$(ARM_ARCHS) $(PPC_ARCHS)),$(ARCH))
CMAKE_ARGS += -DENABLE_ASSEMBLY=OFF
endif

# Define x86asm
ifeq ($(findstring $(ARCH),$(i686_ARCHS) $(x64_ARCHS)),$(ARCH))
BUILD_DEPENDS = native/nasm
NASM_PATH = $(abspath $(PWD)/../../native/nasm/work-native/install/usr/local/bin)
CMAKE_ARGS += -DNASM_EXECUTABLE=$(NASM_PATH)/nasm
ENV += AS=$(NASM_PATH)/nasm
ENV += PATH=$(NASM_PATH):$$PATH
endif

ifeq ($(findstring $(ARCH),$(x64_ARCHS)),$(ARCH))
CMAKE_ARGS += -DCMAKE_SYSTEM_PROCESSOR=x86_64
CMAKE_ARGS += -DCMAKE_ASM_NASM_FLAGS=-w-macro-params-legacy
endif

ifeq ($(findstring $(ARCH),$(i686_ARCHS)),$(ARCH))
CMAKE_ARGS += -DCMAKE_SYSTEM_PROCESSOR=x86
# asm code for HIGH_BIT_DEPTH is not compatible with 32-bit arch
CMAKE_BITLIB_ARGS += -DENABLE_ASSEMBLY=OFF
CMAKE_MULTILIB_ARGS += -DCMAKE_ASM_NASM_FLAGS=-w-macro-params-legacy
ifeq ($(findstring $(ARCH),$(i686_ARCHS)),$(ARCH))
CMAKE_ARGS_BITLIB += -DENABLE_ASSEMBLY=OFF
endif

include ../../mk/spksrc.cross-cc.mk
include ../../mk/spksrc.cross-cmake.mk

# gcc version above 4.8 required to support hdr10plus
ifeq ($(call version_le, $(TC_GCC), 4.8),1)
Expand All @@ -102,36 +70,18 @@ CMAKE_ARGS += -DNO_ATOMICS=ON
CMAKE_ARGS += -DCMAKE_CXX_FLAGS="-DSPKSRC_FIX_PPC853X_4_3"
endif

.PHONY: x265_pre_configure
x265_pre_configure: $(CMAKE_TOOLCHAIN_PKG)
@$(MSG) Configure 12BIT libraries
$(RUN) cmake -S $(WORK_DIR)/$(PKG_DIR)/source -B $(CMAKE_BUILD_12B) $(CMAKE_ARGS) $(CMAKE_ARGS_BITLIB) -DMAIN12=ON -G Ninja
@$(MSG) Configure 10BIT libraries
$(RUN) cmake -S $(WORK_DIR)/$(PKG_DIR)/source -B $(CMAKE_BUILD_10B) $(CMAKE_ARGS) $(CMAKE_ARGS_BITLIB) -G Ninja

.PHONY: $(PKG_DIR)/libx265_main12.a $(PKG_DIR)/libx265_main10.a x265_configure

# First create specific static libraries with build options for 12 and 10 bit depth
PKG_WORK_DIR = $(WORK_DIR)/$(PKG_NAME)_$(PKG_VERS)
PKG_BUILD_12BIT = $(PKG_WORK_DIR)/build12bit
PKG_BUILD_10BIT = $(PKG_WORK_DIR)/build10bit

CMAKE_BITLIB_ARGS += -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF
CMAKE_BITLIB_ARGS += -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DEXTRA_LINK_FLAGS="-ldl"

$(PKG_DIR)/libx265_main12.a:
mkdir --parents $(PKG_BUILD_12BIT)
@$(MSG) Configure for 12BIT libraries
cd $(PKG_BUILD_12BIT) && cmake $(CMAKE_ARGS) $(CMAKE_BITLIB_ARGS) -DMAIN12=ON ../source
.PHONY: x265_pre_compile
x265_pre_compile:
@$(MSG) Build 12BIT libraries
cd $(PKG_BUILD_12BIT) && $(MAKE) $(COMPILE_MAKE_OPTIONS)
@$(RUN) ln -sf $(PKG_BUILD_12BIT)/libx265.a libx265_main12.a

$(PKG_DIR)/libx265_main10.a:
@$(MSG) Configure for 10BIT libraries
mkdir --parents $(PKG_BUILD_10BIT)
cd $(PKG_BUILD_10BIT) && cmake $(CMAKE_ARGS) $(CMAKE_BITLIB_ARGS) ../source
@$(RUN) ninja -C $(CMAKE_BUILD_12B)
@$(MSG) Build 10BIT libraries
cd $(PKG_BUILD_10BIT) && $(MAKE) $(COMPILE_MAKE_OPTIONS)
@$(RUN) ln -sf $(PKG_BUILD_10BIT)/libx265.a libx265_main10.a

# Aggregate them all together in default 8 bit depth build
CMAKE_MULTILIB_ARGS += -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DEXTRA_LINK_FLAGS="-ldl -L."
CMAKE_MULTILIB_ARGS += -DLINKED_10BIT=ON -DLINKED_12BIT=ON -DENABLE_SHARED=ON

x265_configure: $(PKG_DIR)/libx265_main12.a $(PKG_DIR)/libx265_main10.a
@$(RUN) cmake $(CMAKE_ARGS) $(CMAKE_MULTILIB_ARGS) .
@$(RUN) ninja -C $(CMAKE_BUILD_10B)
@$(RUN) ln -sf $(CMAKE_BUILD_12B)/libx265.a $(CMAKE_BUILD_DIR)/libx265_main12.a
@$(RUN) ln -sf $(CMAKE_BUILD_10B)/libx265.a $(CMAKE_BUILD_DIR)/libx265_main10.a
4 changes: 2 additions & 2 deletions cross/x265/patches/001-fix-dynamicHDR-flags-arm64.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# set ARM64 flags the same way as in parent CMakeLists.txt
#
--- dynamicHDR10/CMakeLists.txt.orig 2021-03-16 12:53:00.000000000 +0000
+++ dynamicHDR10/CMakeLists.txt 2022-03-26 13:06:56.201819727 +0000
--- source/dynamicHDR10/CMakeLists.txt.orig 2021-03-16 12:53:00.000000000 +0000
+++ source/dynamicHDR10/CMakeLists.txt 2022-03-26 13:06:56.201819727 +0000
@@ -43,7 +43,11 @@
endif()
endif()
Expand Down
4 changes: 2 additions & 2 deletions cross/x265/patches/002-detect512-on-all-archs.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- common/cpu.cpp-orig 2019-12-10 22:31:19.000525673 -0500
+++ common/cpu.cpp 2019-12-10 22:28:41.983368481 -0500
--- source/common/cpu.cpp-orig 2019-12-10 22:31:19.000525673 -0500
+++ source/common/cpu.cpp 2019-12-10 22:28:41.983368481 -0500
@@ -110,6 +110,11 @@ const cpu_name_t cpu_names[] =
{ "", 0 },
};
Expand Down
4 changes: 2 additions & 2 deletions cross/x265/patches/003-fix-version-info-arm64.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# fix version info for ARM64
# https://bitbucket.org/multicoreware/x265_git/issues/604/linux-arm-aarch64-build-failing-for-high
#
--- common/version.cpp.orig 2021-03-16 12:53:00.000000000 +0000
+++ common/version.cpp 2022-03-26 13:24:42.935435144 +0000
--- source/common/version.cpp.orig 2021-03-16 12:53:00.000000000 +0000
+++ source/common/version.cpp 2022-03-26 13:24:42.935435144 +0000
@@ -71,7 +71,7 @@
#define ONOS "[Unk-OS]"
#endif
Expand Down
4 changes: 2 additions & 2 deletions cross/zstd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ HOMEPAGE = https://facebook.github.io/zstd/
COMMENT = Zstandard is a fast compression algorithm, providing high compression ratios.
LICENSE = GPLv2/BSD

MESON_BUILD_DIR = build/meson
NINJA_BUILD_DIR = .
MESON_BASE_DIR = $(WORK_DIR)/$(PKG_DIR)/build/meson
#CMAKE_BASE_DIR = $(WORK_DIR)/$(PKG_DIR)/build/cmake

include ../../mk/spksrc.common.mk

Expand Down
13 changes: 12 additions & 1 deletion mk/spksrc.archs.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Common arch definitions

###

# Set basedir in case called from spkrc/ or from normal sub-dir
ifeq ($(BASEDIR),)
ifneq ($(shell basename $(CURDIR)),spksrc)
BASEDIR = ../../
endif
endif

###

# All available CPU architectures

# Distinct SRM and DSM archs to allow handling of different TCVERSION ranges.
Expand Down Expand Up @@ -33,7 +44,7 @@ x64_ARCHS = $(GENERIC_x64_ARCH) apollolake avoton braswell broadwell broadwellnk

# Arch groups
ALL_ARCHS = $(x64_ARCHS) $(i686_ARCHS) $(PPC_ARCHS) $(ARM_ARCHS)
ARCHS_WITH_GENERIC_SUPPORT = $(sort $(foreach version, $(AVAILABLE_TCVERSIONS), $(foreach arch, $(GENERIC_ARCHS), $(addsuffix -$(version),$(shell sed -n 's/^TC_ARCH = \(.*\)/\1/p' ../../toolchain/syno-$(arch)-$(version)/Makefile 2>/dev/null)))))
ARCHS_WITH_GENERIC_SUPPORT = $(sort $(foreach version, $(AVAILABLE_TCVERSIONS), $(foreach arch, $(GENERIC_ARCHS), $(addsuffix -$(version),$(shell sed -n 's/^TC_ARCH = \(.*\)/\1/p' $(BASEDIR)toolchain/syno-$(arch)-$(version)/Makefile 2>/dev/null)))))
# PPC_ARCHS except qoriq
OLD_PPC_ARCHS = powerpc ppc824x ppc853x ppc854x

Expand Down
Loading