Cross Compiling KubeEdge

For ARM Architecture from x86 Architecture

Clone KubeEdge

  1. # Build and run KubeEdge on a ARMv6 target device.
  2.  
  3. git clone https://github.com/kubeedge/kubeedge.git $GOPATH/src/github.com/kubeedge/kubeedge
  4. cd $GOPATH/src/github.com/kubeedge/kubeedge/edge
  5. sudo apt-get install gcc-arm-linux-gnueabi
  6. export GOARCH=arm
  7. export GOOS="linux"
  8. export GOARM=6 #Pls give the appropriate arm version of your device
  9. export CGO_ENABLED=1
  10. export CC=arm-linux-gnueabi-gcc
  11. make all WHAT=edge