Commit c1a9424d authored by yoogx's avatar yoogx
Browse files

* Use gcc instead of ld for the LD macro

parent 318c993c
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
## To use and compile examples for DSLinux, get the ## To use and compile examples for DSLinux, get the
## toolchain at http://www.dslinux.org. ## toolchain at http://www.dslinux.org.
CC = ucfront-gcc arm-linux-elf-gcc CC = ucfront-gcc arm-linux-elf-gcc
CPP = ucfront-gcc arm-linux-elf-g++ CPP = ucfront-gcc arm-linux-elf-g++
TARGET_CFLAGS = -O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall -mswp-byte-writes -DCONFIG_NDS_ROM8BIT -mcpu=arm946e-s -mfpu=fpe3 -DEMBED -D__PIC__ -fpic -msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__ -DPOSIX=1 $(GCC_GENERIC_FLAGS) TARGET_CFLAGS = -O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall -mswp-byte-writes -DCONFIG_NDS_ROM8BIT -mcpu=arm946e-s -mfpu=fpe3 -DEMBED -D__PIC__ -fpic -msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__ -DPOSIX=1 $(GCC_GENERIC_FLAGS)
LD = arm-linux-elf-ld LD = arm-linux-elf-gcc
TARGET_LDFLAGS = -Wl,-elf2flt -D__PIC__ -fpic -msingle-pic-base -mswp-byte-writes -lpthread -lrt TARGET_LDFLAGS = -Wl,-elf2flt -D__PIC__ -fpic -msingle-pic-base -mswp-byte-writes -lpthread -lrt
target-clean: target-clean:
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
CC = arm-linux-gcc CC = arm-linux-gcc
CPP = arm-linux-g++ CPP = arm-linux-g++
TARGET_CFLAGS = -DPOSIX=1 $(GCC_GENERIC_FLAGS) TARGET_CFLAGS = -DPOSIX=1 $(GCC_GENERIC_FLAGS)
LD = arm-linux-ld LD = arm-linux-gcc
TARGET_LDFLAGS = -lpthread -lrt TARGET_LDFLAGS = -lpthread -lrt
target-clean: target-clean:
......
...@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FLAGS) -D_ ...@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FLAGS) -D_
TARGET_LDFLAGS = -lpthread -lrt -L$(RUNTIME_PATH)/libs/linux32/ -L$(RUNTIME_PATH)/libs/linux64/ -llua -lm TARGET_LDFLAGS = -lpthread -lrt -L$(RUNTIME_PATH)/libs/linux32/ -L$(RUNTIME_PATH)/libs/linux64/ -llua -lm
SIMULINK_LDFLAGS = -lm SIMULINK_LDFLAGS = -lm
CC = gcc CC = gcc
LD = ld LD = gcc
GPROF = gprof GPROF = gprof
......
...@@ -11,16 +11,16 @@ CPP = arm-rtems4.10-g++ ...@@ -11,16 +11,16 @@ CPP = arm-rtems4.10-g++
GPROF = arm-rtems4.10-gprof GPROF = arm-rtems4.10-gprof
TARGET_SOURCES = TARGET_SOURCES =
#TARGET_TRANSPORT_SOURCES = $(RUNTIME_PATH)/config/leon-rtems/config.c #TARGET_TRANSPORT_SOURCES = $(RUNTIME_PATH)/config/leon-rtems/config.c
TARGET_TRANSPORT_SOURCES = TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_PURE -DGUMSTIX_RTEMS -mstructure-size-boundary=8 -mcpu=xscale -mfpu=vfp -mfloat-abi=soft $(GCC_GENERIC_FLAGS) TARGET_CFLAGS = -DRTEMS_PURE -DGUMSTIX_RTEMS -mstructure-size-boundary=8 -mcpu=xscale -mfpu=vfp -mfloat-abi=soft $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE = TARGET_INCLUDE =
LD = arm-rtems4.10-gcc
TARGET_LDFLAGS =
LD = arm-rtems4.10-ld
TARGET_LDFLAGS =
target-clean: target-clean:
rm -f $(BINARY).ralf rm -f $(BINARY).ralf
rm -f flash.img rm -f flash.img
...@@ -54,5 +54,3 @@ define bsp-post-link ...@@ -54,5 +54,3 @@ define bsp-post-link
$(SIZE) $@ $(SIZE) $@
cp $@ $(basename $@).ralf cp $@ $(basename $@).ralf
endef endef
...@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -m32 -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FL ...@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -m32 -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FL
TARGET_LDFLAGS = -lpthread -lrt -m32 -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm TARGET_LDFLAGS = -lpthread -lrt -m32 -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm
SIMULINK_LDFLAGS = -lm SIMULINK_LDFLAGS = -lm
CC = gcc CC = gcc
LD = ld LD = gcc
GPROF = gprof GPROF = gprof
USE_USB_BRICK=$(shell grep __PO_HI_NEED_DRIVER_SPACEWIRE_USB_BRICK deployment.h 2>/dev/null|wc -l) USE_USB_BRICK=$(shell grep __PO_HI_NEED_DRIVER_SPACEWIRE_USB_BRICK deployment.h 2>/dev/null|wc -l)
......
...@@ -12,7 +12,7 @@ TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm ...@@ -12,7 +12,7 @@ TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm
SIMULINK_LDFLAGS = -lm SIMULINK_LDFLAGS = -lm
CC = gcc CC = gcc
LD = ld LD = gcc
GPROF = gprof GPROF = gprof
......
...@@ -12,7 +12,7 @@ TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm ...@@ -12,7 +12,7 @@ TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm
SIMULINK_LDFLAGS = -lm SIMULINK_LDFLAGS = -lm
CC = gcc CC = gcc
LD = ld LD = gcc
GPROF = gprof GPROF = gprof
......
...@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -m64 -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FLAGS ...@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -m64 -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FLAGS
TARGET_LDFLAGS = -lpthread -lrt -m64 -L$(RUNTIME_PATH)/libs/linux64/ -llua -lm TARGET_LDFLAGS = -lpthread -lrt -m64 -L$(RUNTIME_PATH)/libs/linux64/ -llua -lm
SIMULINK_LDFLAGS = -lm SIMULINK_LDFLAGS = -lm
CC = gcc CC = gcc
LD = ld LD = gcc
GPROF = gprof GPROF = gprof
......
...@@ -2,7 +2,7 @@ TARGET_CFLAGS = -D_WIN32 -D_GNU_SOURCE $(GCC_GENERIC_FLAGS) -std=c99 -m32 ...@@ -2,7 +2,7 @@ TARGET_CFLAGS = -D_WIN32 -D_GNU_SOURCE $(GCC_GENERIC_FLAGS) -std=c99 -m32
TARGET_LDFLAGS = -m32 TARGET_LDFLAGS = -m32
SIMULINK_LDFLAGS = -lm SIMULINK_LDFLAGS = -lm
CC = i686-w64-mingw32-gcc CC = i686-w64-mingw32-gcc
LD = i686-w64-mingw32-ld LD = i686-w64-mingw32-gcc
GPROF = gprof GPROF = gprof
ifdef USE_GPROF ifdef USE_GPROF
......
...@@ -9,16 +9,16 @@ CPP = i386-linux-cpp ...@@ -9,16 +9,16 @@ CPP = i386-linux-cpp
GPROF = GPROF =
TARGET_SOURCES = TARGET_SOURCES =
TARGET_TRANSPORT_SOURCES = TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -I$(LINUXTASTE_PATH)/output/target/usr/local/include -DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE -D__PO_HI_PLATFORM_LINUXTASTE $(GCC_GENERIC_FLAGS) TARGET_CFLAGS = -I$(LINUXTASTE_PATH)/output/target/usr/local/include -DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE -D__PO_HI_PLATFORM_LINUXTASTE $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE = TARGET_INCLUDE =
LD = i386-linux-ld LD = i386-linux-gcc
TARGET_LDFLAGS = -L$(LINUXTASTE_PATH)/output/target/usr/local/lib -lrt -lpthread -lcomedi -lm TARGET_LDFLAGS = -L$(LINUXTASTE_PATH)/output/target/usr/local/lib -lrt -lpthread -lcomedi -lm
target-clean: target-clean:
target-objects: target-objects:
...@@ -21,15 +21,15 @@ CPP = i386-rtems4.8-g++ ...@@ -21,15 +21,15 @@ CPP = i386-rtems4.8-g++
GPROF = i386-rtems4.8-gprof GPROF = i386-rtems4.8-gprof
TARGET_SOURCES = TARGET_SOURCES =
TARGET_TRANSPORT_SOURCES = TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_PURE -DX86_RTEMS $(GCC_GENERIC_FLAGS) TARGET_CFLAGS = -DRTEMS_PURE -DX86_RTEMS $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/ TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/
LD = i386-rtems4.8-ld LD = i386-rtems4.8-gcc
TARGET_LDFLAGS = -lrtemsbsp -lc -lm TARGET_LDFLAGS = -lrtemsbsp -lc -lm
target-clean: target-clean:
-include $(RTEMS_MAKEFILE_PATH)/Makefile.inc -include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
...@@ -53,5 +53,3 @@ target-objects: ...@@ -53,5 +53,3 @@ target-objects:
else else
target-objects: target-objects:
endif endif
...@@ -21,15 +21,15 @@ CPP = i386-rtems4.8-g++ ...@@ -21,15 +21,15 @@ CPP = i386-rtems4.8-g++
GPROF = i386-rtems4.8-gprof GPROF = i386-rtems4.8-gprof
TARGET_SOURCES = TARGET_SOURCES =
TARGET_TRANSPORT_SOURCES = TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_POSIX -DX86_RTEMS $(GCC_GENERIC_FLAGS) TARGET_CFLAGS = -DRTEMS_POSIX -DX86_RTEMS $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/ TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/
LD = i386-rtems4.8-ld LD = i386-rtems4.8-gcc
TARGET_LDFLAGS = -lrtemsbsp -lc -lm TARGET_LDFLAGS = -lrtemsbsp -lc -lm
target-clean: target-clean:
-include $(RTEMS_MAKEFILE_PATH)/Makefile.inc -include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
...@@ -53,5 +53,3 @@ target-objects: ...@@ -53,5 +53,3 @@ target-objects:
else else
target-objects: target-objects:
endif endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment