blob: 68d4dc7deac083f91297fe6d7acd2d279708cd86 [file] [log] [blame]
# If you want to build in another directory copy this file there and
# fill in the following values
#
# Prefix of cross toolchain, if anything
# Example: CROSS= powerpc64-unknown-linux-gnu-
#
ARCH = $(shell uname -m)
ifdef CROSS_COMPILE
CROSS ?= $(CROSS_COMPILE)
endif
ifneq ("$(ARCH)", "ppc64")
ifneq ("$(ARCH)", "ppc64le")
CROSS ?= powerpc64-linux-
endif
endif
#
# Main debug switch
#
DEBUG ?= 0
# Run tests under valgrind?
USE_VALGRIND ?= 1
#
# Optional location of embedded linux kernel file
# This can be a raw vmlinux, stripped vmlinux or
# zImage.epapr
#
KERNEL ?=
#
# Optional build with advanced stack checking
#
STACK_CHECK ?= $(DEBUG)
#
# Experimental (unsupported) build options
#
# Little-endian does not yet build. Include it here to set ELF ABI.
LITTLE_ENDIAN ?= 0
# ELF v2 ABI is more efficient and compact
ELF_ABI_v2 ?= $(LITTLE_ENDIAN)
# Discard unreferenced code and data at link-time
DEAD_CODE_ELIMINATION ?= 0
#
# Where is the source directory, must be a full path (no ~)
# Example: SRC= /home/me/skiboot
#
SRC=$(CURDIR)
#
# Where to get information about this machine (subdir name)
#
DEVSRC=hdata
#
# default config file, see include config_*.h for more specifics
#
CONFIG := config.h
include $(SRC)/Makefile.main