mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	Link to wiki for compilation doc
This commit is contained in:
		
							parent
							
								
									16347d3758
								
							
						
					
					
						commit
						0ef2739624
					
				
					 1 changed files with 1 additions and 32 deletions
				
			
		
							
								
								
									
										33
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										33
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -38,39 +38,8 @@ dd bs=4M if=omr-*.img of=/dev/sdX conv=fsync
 | 
			
		|||
 | 
			
		||||
## Install from source
 | 
			
		||||
 | 
			
		||||
### Dependencies
 | 
			
		||||
[Create image](https://github.com/Ysurac/openmptcprouter/wiki/Create-image-for-unsupported-platform)
 | 
			
		||||
 | 
			
		||||
You need a classical build environment like `build-essential` on Debian and `git`.
 | 
			
		||||
Some feeds might not available over `git` but only via `subversion` or `mercurial`.
 | 
			
		||||
 | 
			
		||||
On Debian you'll need to install the following:
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
sudo apt install build-essential git unzip ncurses-dev libz-dev libssl-dev openssl-1.0-dev
 | 
			
		||||
  python python3-dev python3.5 libelf-dev subversion gettext gawk wget curl rsync perl
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Prepare and build
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
git clone https://github.com/ysurac/openmptcprouter.git
 | 
			
		||||
cd openmptcprouter
 | 
			
		||||
./build.sh
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
The script `build.sh` accepts all `make` arguments (like `-j`).
 | 
			
		||||
When finished, files are located in the directory `source/bin`.
 | 
			
		||||
 | 
			
		||||
### Custom arch build
 | 
			
		||||
 | 
			
		||||
By default the build script will create the packages for the `x86_64` architecture.
 | 
			
		||||
You can specify a custom build target by adding a `OMR_TARGET` environment variable to the build and the corresponding `config-$OMR_TARGET` file.
 | 
			
		||||
 | 
			
		||||
To build the project for the raspberry pi 3:
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
OMR_TARGET="rpi3" ./build.sh
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Credits
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue