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:
parent
3662f64907
commit
66d1750e4e
4
Makefile
4
Makefile
@ -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
|
||||
GO ?= go
|
||||
GOOS := linux
|
||||
GOARCH := amd64
|
||||
GOROOT := $(shell $(GO) env GOROOT)
|
||||
|
||||
@ -34,6 +33,8 @@ FUZZ_PKG_LIST := src/gopheros/device/acpi/aml
|
||||
# FUZZ_PKG_LIST += path-to-pkg
|
||||
|
||||
ifeq ($(OS), Linux)
|
||||
GOOS := linux
|
||||
|
||||
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")
|
||||
|
||||
@ -190,6 +191,7 @@ lint: lint-check-deps
|
||||
--exclude 'x \^ 0 always equals x' \
|
||||
--exclude 'dispatchInterrupt is unused' \
|
||||
--exclude 'interruptGateEntries is unused' \
|
||||
--exclude 'yieldFn is unused' \
|
||||
src/...
|
||||
|
||||
lint-check-deps:
|
||||
|
Loading…
x
Reference in New Issue
Block a user