mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
build: BSD compile fixes
following patch allows to build images for Qemu ARM on OpenBSD 5.2 amd64 and FreeBSD 9.1 amd64. Mostly small pieces of code changes to get things right on the specific platform. Updated the README to describe better, which tools on the host are required. Added some kind of prepare scripts to install needed tools on BSD via packages. Signed-off-by: Waldemar Brodkorb <mail@waldemar-brodkorb.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35900 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -71,7 +71,7 @@ HOST_CONFIGURE_ARGS = \
|
||||
|
||||
HOST_MAKE_FLAGS =
|
||||
|
||||
HOST_CONFIGURE_CMD = ./configure
|
||||
HOST_CONFIGURE_CMD = $(BASH) ./configure
|
||||
|
||||
ifneq ($(HOST_OS),Darwin)
|
||||
ifeq ($(CONFIG_BUILD_STATIC_TOOLS),y)
|
||||
|
||||
@@ -62,6 +62,9 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
|
||||
PATCH=`which gpatch 2>/dev/null`; \
|
||||
[ -n "$$PATCH" -a -x "$$PATCH" ] || PATCH=`which patch 2>/dev/null`; \
|
||||
echo "PATCH:=$$PATCH" >> $@; \
|
||||
PYTHON=`which python2.7 2>/dev/null`; \
|
||||
[ -n "$$PYTHON" -a -x "$$PYTHON" ] || PYTHON=`which python 2>/dev/null`; \
|
||||
echo "PYTHON:=$$PYTHON" >> $@; \
|
||||
)
|
||||
|
||||
endif
|
||||
|
||||
@@ -39,6 +39,8 @@ $(eval $(call Require,case-sensitive-fs, \
|
||||
))
|
||||
|
||||
define Require/getopt
|
||||
gnugetopt --help 2>&1 | grep long >/dev/null || \
|
||||
/usr/local/bin/getopt --help 2>&1 | grep long >/dev/null || \
|
||||
getopt --help 2>&1 | grep long >/dev/null
|
||||
endef
|
||||
$(eval $(call Require,getopt, \
|
||||
@@ -134,15 +136,11 @@ $(eval $(call RequireCommand,bzip2, \
|
||||
Please install bzip2. \
|
||||
))
|
||||
|
||||
$(eval $(call RequireCommand,patch, \
|
||||
Please install patch. \
|
||||
))
|
||||
|
||||
$(eval $(call RequireCommand,perl, \
|
||||
Please install perl. \
|
||||
))
|
||||
|
||||
$(eval $(call RequireCommand,python, \
|
||||
$(eval $(call RequireCommand,$(PYTHON), \
|
||||
Please install python. \
|
||||
))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user