1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

makefile: move GOOS envvar to correct location and add linter exception

This commit is contained in:
Achilleas Anagnostopoulos 2018-06-16 07:34:13 +01:00
parent 3662f64907
commit 66d1750e4e

View File

@ -9,7 +9,6 @@ QEMU ?= qemu-system-x86_64
# If your go is called something else set it on the commandline, like this: make run GO=go1.8 # If your go is called something else set it on the commandline, like this: make run GO=go1.8
GO ?= go GO ?= go
GOOS := linux
GOARCH := amd64 GOARCH := amd64
GOROOT := $(shell $(GO) env GOROOT) GOROOT := $(shell $(GO) env GOROOT)
@ -34,6 +33,8 @@ FUZZ_PKG_LIST := src/gopheros/device/acpi/aml
# FUZZ_PKG_LIST += path-to-pkg # FUZZ_PKG_LIST += path-to-pkg
ifeq ($(OS), Linux) ifeq ($(OS), Linux)
GOOS := linux
MIN_OBJCOPY_VERSION := 2.26.0 MIN_OBJCOPY_VERSION := 2.26.0
HAVE_VALID_OBJCOPY := $(shell objcopy -V | head -1 | awk -F ' ' '{print "$(MIN_OBJCOPY_VERSION)\n" $$NF}' | sort -ct. -k1,1n -k2,2n && echo "y") HAVE_VALID_OBJCOPY := $(shell objcopy -V | head -1 | awk -F ' ' '{print "$(MIN_OBJCOPY_VERSION)\n" $$NF}' | sort -ct. -k1,1n -k2,2n && echo "y")
@ -190,6 +191,7 @@ lint: lint-check-deps
--exclude 'x \^ 0 always equals x' \ --exclude 'x \^ 0 always equals x' \
--exclude 'dispatchInterrupt is unused' \ --exclude 'dispatchInterrupt is unused' \
--exclude 'interruptGateEntries is unused' \ --exclude 'interruptGateEntries is unused' \
--exclude 'yieldFn is unused' \
src/... src/...
lint-check-deps: lint-check-deps: