mirror of https://github.com/OpenIPC/firmware.git
update makefile for multiple cpu arch, fix spacing on yaml
parent
43cb043194
commit
a92f1b060c
|
@ -15,10 +15,22 @@ GO2RTC_DEPENDENCIES = host-go host-upx
|
|||
GO2RTC_GO_LDFLAGS = -s -w
|
||||
|
||||
define GO2RTC_BUILD_CMDS
|
||||
GOARCH=$$( \
|
||||
case $(BR2_ARCH) in \
|
||||
x86) echo 386 ;; \
|
||||
x86_64) echo amd64 ;; \
|
||||
arm) echo arm ;; \
|
||||
aarch64) echo arm64 ;; \
|
||||
mips) echo mips ;; \
|
||||
mipsel) echo mipsle ;; \
|
||||
*) echo "Unsupported architecture: $(BR2_ARCH)" && exit 1 ;; \
|
||||
esac \
|
||||
); \
|
||||
echo "Building for GOARCH: $$GOARCH"; \
|
||||
(cd $(@D); \
|
||||
CGO_ENABLED=0 \
|
||||
GOOS=linux \
|
||||
GOARCH=mipsle \
|
||||
GOARCH=$$GOARCH \
|
||||
go build -ldflags "$(GO2RTC_GO_LDFLAGS)")
|
||||
endef
|
||||
|
||||
|
|
Loading…
Reference in New Issue