Last active
February 19, 2016 14:44
-
-
Save pichuang/40e24241be4a6a95301c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
# | |
# WIP | |
# Refs: | |
# http://www.openswitch.net/documents/dev/step-by-step-guide | |
# | |
OPS_VERSION="0.2.0" | |
MODULE="as5712" | |
# | |
# Create ops-builder | |
# | |
mkdir ops-builder && cd ops-builder | |
# | |
# Download OpenSwitch Project | |
# | |
git clone https://git.openswitch.net/openswitch/ops-build | |
cd ops-build | |
git checkout $OPS_VERSION | |
# | |
# Prepare install package | |
# | |
#TODO: Need to add more dependency package | |
#TODO: Loss diffstat package, send a patch | |
sudo aptitude install -y chrpath diffstat device-tree-compiler | |
# | |
# Configuring an OpenSwitch product | |
# | |
make configure $MODULE | |
# | |
# Building the product | |
# | |
make | |
echo | |
echo "The build output can be found under the images/ directory." | |
echo "Image name: onie-installer-x86_64-as5712_54x" | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment