MIPS cross-compile bit

Use 3 additional Makefile variables
This commit is contained in:
nhmall
2024-12-17 19:16:00 -05:00
parent 6e587fb282
commit f32e766728
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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$@ $<