mirror of https://github.com/OpenIPC/firmware.git
update makefile for multiple cpu arch, fix spacing on yaml
parent
43cb043194
commit
a92f1b060c
|
@ -8,13 +8,13 @@ log:
|
||||||
webrtc: fatal
|
webrtc: fatal
|
||||||
|
|
||||||
rtsp:
|
rtsp:
|
||||||
listen: ":8553"
|
listen: ":8553"
|
||||||
|
|
||||||
webrtc:
|
webrtc:
|
||||||
candidates:
|
candidates:
|
||||||
- stun:8555
|
- stun:8555
|
||||||
|
|
||||||
streams:
|
streams:
|
||||||
openipc_jpeg: http://username:password@127.0.0.1/image.jpg
|
openipc_jpeg: http://username:password@127.0.0.1/image.jpg
|
||||||
openipc_rtsp-1: rtsp://username:password@127.0.0.1/stream=0
|
openipc_rtsp-1: rtsp://username:password@127.0.0.1/stream=0
|
||||||
openipc_rtsp-2: rtsp://username:password@127.0.0.1/stream=1
|
openipc_rtsp-2: rtsp://username:password@127.0.0.1/stream=1
|
||||||
|
|
|
@ -15,11 +15,23 @@ GO2RTC_DEPENDENCIES = host-go host-upx
|
||||||
GO2RTC_GO_LDFLAGS = -s -w
|
GO2RTC_GO_LDFLAGS = -s -w
|
||||||
|
|
||||||
define GO2RTC_BUILD_CMDS
|
define GO2RTC_BUILD_CMDS
|
||||||
(cd $(@D); \
|
GOARCH=$$( \
|
||||||
CGO_ENABLED=0 \
|
case $(BR2_ARCH) in \
|
||||||
GOOS=linux \
|
x86) echo 386 ;; \
|
||||||
GOARCH=mipsle \
|
x86_64) echo amd64 ;; \
|
||||||
go build -ldflags "$(GO2RTC_GO_LDFLAGS)")
|
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=$$GOARCH \
|
||||||
|
go build -ldflags "$(GO2RTC_GO_LDFLAGS)")
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define GO2RTC_INSTALL_TARGET_CMDS
|
define GO2RTC_INSTALL_TARGET_CMDS
|
||||||
|
|
Loading…
Reference in New Issue