Skip to content

Instantly share code, notes, and snippets.

@pichuang
Last active February 19, 2016 14:44
Show Gist options
  • Save pichuang/40e24241be4a6a95301c to your computer and use it in GitHub Desktop.
Save pichuang/40e24241be4a6a95301c to your computer and use it in GitHub Desktop.
#!/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