Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
Support building a Linux armv6 binary
Browse files Browse the repository at this point in the history
Signed-off-by: Dieter Reuter <dieter.reuter@me.com>
  • Loading branch information
DieterReuter committed Jul 28, 2016
1 parent e093b15 commit 632d3b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ env:
- TARGET_OS=linux TARGET_ARCH=amd64 TARGETS="build validate"
- TARGET_OS=darwin TARGET_ARCH=amd64 TARGETS="build-x"
- TARGET_OS=windows TARGET_ARCH=amd64 TARGETS="build-x"
- TARGET_OS=linux TARGET_ARCH=arm TARGETS="build-x"
script:
- USE_CONTAINER=true make "$TARGETS"
- "[[ \"$(find bin -type f -name docker-machine*)\" != \"\" ]]"
2 changes: 1 addition & 1 deletion Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ifeq ($(TARGET_OS),)
endif

ifeq ($(TARGET_ARCH),)
TARGET_ARCH := amd64 386
TARGET_ARCH := amd64 arm 386
endif

# Output prefix, defaults to local directory if not specified
Expand Down
3 changes: 2 additions & 1 deletion mk/build.mk
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
extension = $(patsubst windows,.exe,$(filter windows,$(1)))

# Valid target combinations
VALID_OS_ARCH := "[darwin/amd64][linux/amd64][windows/amd64][windows/386]"
VALID_OS_ARCH := "[darwin/amd64][linux/amd64][linux/arm][windows/amd64][windows/386]"

os.darwin := Darwin
os.linux := Linux
os.windows := Windows

arch.amd64 := x86_64
arch.arm := armhf
arch.386 := i386

define gocross
Expand Down

0 comments on commit 632d3b9

Please sign in to comment.