Commit 5d26dd84 authored by Denis Filatov's avatar Denis Filatov
Browse files

update OpenWRT package Makefile and README.md

parent d8267cfe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ endef

define Build/Prepare
	mkdir -p $(PKG_BUILD_DIR)
	$(CP) ./src/{*.c,*.h,Makefile}  $(PKG_BUILD_DIR)
	$(CP) ./src/{*.c,Makefile} ./include/* $(PKG_BUILD_DIR)
endef

define Build/Configure
@@ -36,7 +36,7 @@ define Package/its_bridge/install
	$(INSTALL_DIR) $(1)/usr/bin/
	$(INSTALL_DIR) $(1)/etc/
	$(CP) $(PKG_BUILD_DIR)/{its_bridge_client,its_bridge_server,its_web_server_config} $(1)/usr/bin
	$(CP) -r ./src/etc $(1)/
	$(CP) -r ./etc $(1)/

endef

+14 −7
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ The following STFs were or are currently involved in the evolutions of the ETSI
- STF 405, STF 422, STF 424, STF 455, STF 462, STF 481, STF 484, STF 507, STF 517, STF 525, STF 538, STF 545, TTF T0002


## Installation
## Compilation

### Deployment with OpenWrt (e.g. Gl.iNet device)
- Step 1: Download the Gl.iNet SDK (see https://github.com/gl-inet/sdk)
@@ -32,21 +32,28 @@ cd ./gl_sdk
./download.sh
./download.sh ramips-1806
```
- Step 3: Clone the ETSI ITS-bridge OpenWrt package
- Step 3: Build the SDK for the Gl.iNet Mango
```
cd -
./builder.sh -t ramips-1806 -d ./sdk/1806/ramips
```

- Step 4: Clone the ETSI ITS-bridge OpenWrt package
```
cd ./sdk/1806/ramips
git clone https://forge.etsi.org/rep/plugtests/its-plugtests/its-bridge.git package/its-bridge
```
- Step 4: Update the configuration using menuconfig. In Utilites section, it_bridge shall be present, add it in the list of the package to be compiled
- Step 5: Update the configuration using menuconfig. In Utilites section, it_bridge shall be present, add it in the list of the package to be compiled
```
make menuconfig
```
- Step 5: Build the SDK for the Gl.iNet Mango
- Step 6: Build the its_bridge package
```
cd -
./builder.sh -t ramips-1806 -d ./sdk/1806/ramips
make package/its_bridge_compile V=s
```
- Step 6: Install the package on the Gl.iNet mt300n-v2 Mango device
- Step 7: Install the package on the Gl.iNet mt300n-v2 Mango device
-- copy the package ```./bin/packages/mipsel_24kc/base/its_bridge_0.0.1-1_mipsel_24kc.ipk``` to the device using SSH access
-- execute ```opkg install its_bridge_0.0.1-1_mipsel_24kc.ipk``` to install the package

### Deployment on Linux box device (e.g. NanoPI R2S)
See script/install.sh for a complete installation: