Skip to content

Commit

Permalink
Add EU region, and start lorawan-bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
Alistair Jordan committed Dec 4, 2023
1 parent 8281a43 commit 3389fa0
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 84 deletions.
83 changes: 0 additions & 83 deletions project/app/lorawan/Makefile

This file was deleted.

4 changes: 4 additions & 0 deletions sysdrv/cfg/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ $(eval $(call MACRO_CHECK_ENABLE_PKG, RK_ENABLE_OTA))
# Enable build strace
CONFIG_SYSDRV_ENABLE_STRACE=n
$(eval $(call MACRO_CHECK_ENABLE_PKG, RK_ENABLE_STRACE))

# Enable build lorawan-bridge
CONFIG_SYSDRV_ENABLE_LORAWAN_BRIDGE=y
$(eval $(call MACRO_CHECK_ENABLE_PKG, RK_ENABLE_LORAWAN_BRIDGE))
9 changes: 8 additions & 1 deletion sysdrv/tools/board/Makefile.tools.board.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ tools_board-builds: \
board-build-rockchip_test \
board-build-e2fsprogs \
board-build-sysstat \
board-build-mtd_utils
board-build-mtd_utils \
board-build-lorawan-bridge
@echo "build tools board done"

tools_board-clean:
Expand All @@ -23,6 +24,7 @@ tools_board-clean:
$(MAKE) -C $(SYSDRV_DIR)/tools/board/stressapptest distclean
$(MAKE) -C $(SYSDRV_DIR)/tools/board/rk_ota distclean
$(MAKE) -C $(SYSDRV_DIR)/tools/board/sysstat distclean
$(MAKE) -C $(SYSDRV_DIR)/tools/board/lorawan-bridge distclean

board-build-toolkits:
$(MAKE) -C $(SYSDRV_DIR)/tools/board/toolkits
Expand Down Expand Up @@ -78,3 +80,8 @@ board-build-sysstat:
ifeq ($(ENABLE_SYSSTAT),y)
$(MAKE) -C $(SYSDRV_DIR)/tools/board/sysstat
endif

board-build-lorawan-bridge:
ifeq ($(ENABLE_LORAWAN_BRIDGE),y)
$(MAKE) -C $(SYSDRV_DIR)/tools/board/lorawan-bridge
endif
25 changes: 25 additions & 0 deletions sysdrv/tools/board/lorawan-bridge/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

#ifeq ($(SYSDRV_PARAM), )
LORAWAN_BRIDGE_PARAM:=../../../Makefile.param
include $(LORAWAN_BRIDGE_PARAM)
#endif

export LC_ALL=C
SHELL:=/bin/bash

CURRENT_DIR := $(shell pwd)
PKG_NAME := lbr
PKG_BIN := out

all:
@test -f $(PKG_BIN)/usr/sbin/$(PKG_NAME)_noexist || (\
mkdir -p $(CURRENT_DIR)/$(PKG_BIN)/usr/sbin; \
$(SYSDRV_CROSS)-gcc -g main.c -o $(CURRENT_DIR)/$(PKG_BIN)/usr/sbin/$(PKG_NAME); \
)
$(call MAROC_COPY_PKG_TO_SYSDRV_OUTPUT, $(SYSDRV_DIR_OUT_ROOTFS), $(PKG_BIN))
# $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL_DIR) M=$(shell pwd) $@ -j12

clean: distclean

distclean:
-rm -rf $(PKG_NAME) $(PKG_BIN)
File renamed without changes.

0 comments on commit 3389fa0

Please sign in to comment.