mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
build systems: Changes to work on FreeBSD
Merges https://github.com/espressif/esp-idf/pull/2029
This commit is contained in:
parent
b8997eb218
commit
d296aad2a9
@ -34,6 +34,11 @@ function(__kconfig_init)
|
|||||||
set(MCONF "\"${WINPTY}\" \"${MCONF}\"")
|
set(MCONF "\"${WINPTY}\" \"${MCONF}\"")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||||
|
set(MAKE_COMMMAND "gmake")
|
||||||
|
else()
|
||||||
|
set(MAKE_COMMMAND "make")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT MCONF)
|
if(NOT MCONF)
|
||||||
# Use the existing Makefile to build mconf (out of tree) when needed
|
# Use the existing Makefile to build mconf (out of tree) when needed
|
||||||
@ -49,7 +54,7 @@ function(__kconfig_init)
|
|||||||
CONFIGURE_COMMAND ""
|
CONFIGURE_COMMAND ""
|
||||||
BINARY_DIR "kconfig_bin"
|
BINARY_DIR "kconfig_bin"
|
||||||
BUILD_COMMAND rm -f ${src_path}/zconf.lex.c ${src_path}/zconf.hash.c
|
BUILD_COMMAND rm -f ${src_path}/zconf.lex.c ${src_path}/zconf.hash.c
|
||||||
COMMAND make -f ${src_path}/Makefile mconf-idf
|
COMMAND ${MAKE_COMMMAND} -f ${src_path}/Makefile mconf-idf
|
||||||
BUILD_BYPRODUCTS ${MCONF}
|
BUILD_BYPRODUCTS ${MCONF}
|
||||||
INSTALL_COMMAND ""
|
INSTALL_COMMAND ""
|
||||||
EXCLUDE_FROM_ALL 1
|
EXCLUDE_FROM_ALL 1
|
||||||
|
@ -36,6 +36,7 @@ import re
|
|||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import platform
|
||||||
|
|
||||||
|
|
||||||
class FatalError(RuntimeError):
|
class FatalError(RuntimeError):
|
||||||
@ -64,6 +65,9 @@ if "MSYSTEM" in os.environ: # MSYS
|
|||||||
elif os.name == "nt": # other Windows
|
elif os.name == "nt": # other Windows
|
||||||
MAKE_CMD = "mingw32-make"
|
MAKE_CMD = "mingw32-make"
|
||||||
MAKE_GENERATOR = "MinGW Makefiles"
|
MAKE_GENERATOR = "MinGW Makefiles"
|
||||||
|
elif platform.system() == "FreeBSD":
|
||||||
|
MAKE_CMD = "gmake"
|
||||||
|
MAKE_GENERATOR = "Unix Makefiles"
|
||||||
else:
|
else:
|
||||||
MAKE_CMD = "make"
|
MAKE_CMD = "make"
|
||||||
MAKE_GENERATOR = "Unix Makefiles"
|
MAKE_GENERATOR = "Unix Makefiles"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
# Check ncurses compatibility
|
# Check ncurses compatibility
|
||||||
|
|
||||||
# What library to link
|
# What library to link
|
||||||
|
Loading…
Reference in New Issue
Block a user