Add a RedHat (centos6) target
This commit is contained in:
parent
bb55bf20fa
commit
3edefba8c2
23
Makefile
23
Makefile
|
@ -7,11 +7,19 @@ OBJDIR := obj
|
||||||
SRCDIR := src
|
SRCDIR := src
|
||||||
|
|
||||||
UBUNTU ?= x86_64-linux-ubuntu14
|
UBUNTU ?= x86_64-linux-ubuntu14
|
||||||
|
REDHAT ?= x86_64-linux-centos6
|
||||||
WIN32 ?= i686-w64-mingw32
|
WIN32 ?= i686-w64-mingw32
|
||||||
WIN64 ?= x86_64-w64-mingw32
|
WIN64 ?= x86_64-w64-mingw32
|
||||||
|
|
||||||
# FIXME: Detect the native platform
|
ifneq ($(wildcard /etc/redhat-release),)
|
||||||
NATIVE ?= $(UBUNTU)
|
NATIVE ?= $(REDHAT)
|
||||||
|
AUTORECONF ?= autoreconf268
|
||||||
|
all: redhat
|
||||||
|
else
|
||||||
|
$(error Unknown host)
|
||||||
|
endif
|
||||||
|
|
||||||
|
AUTORECONF ?= autoreconf
|
||||||
|
|
||||||
OBJ_NATIVE := $(OBJDIR)/$(NATIVE)
|
OBJ_NATIVE := $(OBJDIR)/$(NATIVE)
|
||||||
OBJ_UBUNTU := $(OBJDIR)/$(UBUNTU)
|
OBJ_UBUNTU := $(OBJDIR)/$(UBUNTU)
|
||||||
|
@ -50,11 +58,12 @@ ubuntu-gcc: $(BINDIR)/riscv64-unknown-elf-gcc-$(RGT_VERSION)-$(UBUNTU).tar.gz
|
||||||
ubuntu-gcc: $(BINDIR)/riscv64-unknown-elf-gcc-$(RGT_VERSION)-$(UBUNTU).src.tar.gz
|
ubuntu-gcc: $(BINDIR)/riscv64-unknown-elf-gcc-$(RGT_VERSION)-$(UBUNTU).src.tar.gz
|
||||||
ubuntu-openocd: $(BINDIR)/riscv-openocd-$(ROCD_VERSION)-$(UBUNTU).tar.gz
|
ubuntu-openocd: $(BINDIR)/riscv-openocd-$(ROCD_VERSION)-$(UBUNTU).tar.gz
|
||||||
ubuntu-openocd: $(BINDIR)/riscv-openocd-$(ROCD_VERSION)-$(UBUNTU).src.tar.gz
|
ubuntu-openocd: $(BINDIR)/riscv-openocd-$(ROCD_VERSION)-$(UBUNTU).src.tar.gz
|
||||||
|
.PHONY: redhat redhat-gcc redhat-openocd
|
||||||
# FIXME: Check to see if the Windows tools should be built based on the
|
redhat: redhat-gcc redhat-openocd
|
||||||
# presence of the Windows cross compiler.
|
redhat-gcc: $(BINDIR)/riscv64-unknown-elf-gcc-$(RGT_VERSION)-$(REDHAT).tar.gz
|
||||||
all: win64
|
redhat-gcc: $(BINDIR)/riscv64-unknown-elf-gcc-$(RGT_VERSION)-$(REDHAT).src.tar.gz
|
||||||
all: ubuntu
|
redhat-openocd: $(BINDIR)/riscv-openocd-$(ROCD_VERSION)-$(REDHAT).tar.gz
|
||||||
|
redhat-openocd: $(BINDIR)/riscv-openocd-$(ROCD_VERSION)-$(REDHAT).src.tar.gz
|
||||||
|
|
||||||
# Some special riscv-gnu-toolchain configure flags for specific targets.
|
# Some special riscv-gnu-toolchain configure flags for specific targets.
|
||||||
$(WIN32)-rgt-configure := --without-system-zlib --with-host=$(WIN32)
|
$(WIN32)-rgt-configure := --without-system-zlib --with-host=$(WIN32)
|
||||||
|
|
Loading…
Reference in New Issue