Skip to content

Commit

Permalink
Add linux mipsle packages (influxdata#5234)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored and otherpirate committed Mar 15, 2019
1 parent 3cd790c commit c05f6ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

supported_builds = {
"windows": [ "amd64", "i386" ],
"linux": [ "amd64", "i386", "armhf", "armel", "arm64", "static_amd64", "s390x"],
"linux": [ "amd64", "i386", "armhf", "armel", "arm64", "static_amd64", "s390x", "mipsel"],
"freebsd": [ "amd64", "i386" ]
}

Expand Down Expand Up @@ -455,6 +455,8 @@ def build(version=None,
goarch = "arm64"
elif "arm" in arch:
goarch = "arm"
elif arch == "mipsel":
goarch = "mipsle"
build_command += "GOOS={} GOARCH={} ".format(platform, goarch)

if "arm" in arch:
Expand Down Expand Up @@ -569,6 +571,8 @@ def package(build_output, pkg_name, version, nightly=False, iteration=1, static=
shutil.copy(fr, to)

for package_type in supported_packages[platform]:
if package_type == "rpm" and arch == "mipsel":
continue
# Package the directory structure for each package type for the platform
logging.debug("Packaging directory '{}' as '{}'.".format(build_root, package_type))
name = pkg_name
Expand Down

0 comments on commit c05f6ce

Please sign in to comment.