MIPS cross-compile bit
Use 3 additional Makefile variables
This commit is contained in:
@@ -302,11 +302,11 @@ ifdef BUILD_TARGET_NCURSES
|
||||
.PHONY: build-ncurses
|
||||
ifdef MAKEFILE_SRC
|
||||
../lib/ncurses.tar.gz:
|
||||
@echo "You will need to successfully execute 'make CROSS_TO_MIPS=1 fetch-ncurses' first"
|
||||
@echo "You will need to successfully execute 'make CROSS_TO_$(NCURSES_PLATFORM)=1 fetch-ncurses' first"
|
||||
@false
|
||||
$(TARGETPFX)ncurses/lib/libncurses.a: ../lib/ncurses.tar.gz
|
||||
(cd $(TARGETDIR) ; mkdir -p ncurses ; cd ncurses ; tar -xf ../../../lib/ncurses.tar.gz --strip-components=1 ; \
|
||||
./configure --build i686-pc-linux-gnu --host mipsel-linux-gnu ; \
|
||||
./configure --build $(NCURSES_CONFIGURE_BUILD) --host $(NCURSES_CONFIGURE_HOST) ; \
|
||||
make ; \
|
||||
cd ../../../src)
|
||||
endif #MAKEFILE_SRC
|
||||
|
||||
@@ -439,6 +439,9 @@ override RECOVERBIN = $(TARGETPFX)recover
|
||||
override PACKAGE = mipspkg
|
||||
override PREGAME += mkdir -p $(TARGETDIR) ;
|
||||
override CLEANMORE += rm -f -r $(TARGETDIR) ;
|
||||
NCURSES_CONFIGURE_BUILD=i686-pc-linux-gnu
|
||||
NCURSES_CONFIGURE_HOST=mipsel-linux-gnu
|
||||
NCURSES_PLATFORM=MIPS
|
||||
# Rule for file in sys/unix
|
||||
#$(TARGETPFX)%.o : ../sys/unix/%.c
|
||||
# $(TARGET_CC) $(TARGET_CFLAGS) -c -o$@ $<
|
||||
|
||||
Reference in New Issue
Block a user