File tree 3 files changed +14
-11
lines changed
3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
1
2
+ SUPPORTED_TCS = $(notdir $(wildcard toolchains/syno-* ) )
3
+ SUPPORTED_ARCHS = $(notdir $(subst -,/,$(SUPPORTED_TCS ) ) )
2
4
SUPPORTED_SPKS = $(patsubst spk/% /Makefile,% ,$(wildcard spk/* /Makefile) )
3
5
6
+
4
7
all : $(SUPPORTED_SPKS )
5
8
6
9
clean : $(addsuffix -clean,$(SUPPORTED_SPKS ) )
@@ -52,16 +55,14 @@ downloads:
52
55
done
53
56
54
57
.PHONY : toolchains kernel-modules
55
- toolchains :
56
- @for tc in $(dir $(wildcard toolchains/* /Makefile) ) ; \
57
- do \
58
- (cd $$ {tc} && $( MAKE) ) ; \
59
- done
60
- kernel-modules :
61
- @for kern in $(dir $(wildcard kernel/* /Makefile) ) ; \
62
- do \
63
- (cd $$ {kern} && $( MAKE) ) ; \
64
- done
58
+ toolchains : $(addprefix toolchain-,$(SUPPORTED_ARCHS ) )
59
+ kernel-modules : $(addprefix kernel-,$(SUPPORTED_ARCHS ) )
60
+
61
+ toolchain-% :
62
+ -@cd toolchains/syno-$* / && MAKEFLAGS= $(MAKE )
63
+
64
+ kernel-% :
65
+ -@cd kernel/syno-$* / && MAKEFLAGS= $(MAKE )
65
66
66
67
setup : local.mk
67
68
Original file line number Diff line number Diff line change 1
1
ARCH ?= x86
2
- ARCH ?= x86
2
+
3
3
PKG_NAME = synogpl
4
4
PKG_BRANCH = 2636
5
5
PKG_ARCH = x64
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ EXTRACT_TARGET = kernel_extract_target
16
16
CONFIGURE_TARGET = kernel_configure_target
17
17
COPY_TARGET = nop
18
18
19
+ TC ?= syno-$(ARCH )
20
+
19
21
include ../../mk/spksrc.cross-env.mk
20
22
# ####
21
23
You can’t perform that action at this time.
0 commit comments