Skip to content

Commit 1206ca7

Browse files
committed
Reduce changes needed for cross-compile build
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
1 parent da5dfb6 commit 1206ca7

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

CLI/klish/Makefile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,18 @@ SHELL = /bin/bash
33
.SHELLFLAGS += -e
44

55
KLISH_VERSION = 2.1.4
6-
PYTHONVER=3.7
76

87
KLISH_SRC = $(SONIC_CLI_ROOT)/klish-$(KLISH_VERSION)
98

10-
ifeq ($(CROSS_BUILD_ENVIRON),y)
11-
CROSS_CONFIGURE_OPTS = --host=$(CROSS_HOST_TYPE)
12-
LIB_PATH = $(CROSS_PKGS_LIB_PATH)
13-
else
14-
LIB_PATH = /usr/lib/x86_64-linux-gnu
15-
endif
16-
179
SRC_REPLACEMENTS:=$(shell find patches -type f)
1810
all : $(SRC_REPLACEMENTS)
1911
tar xzvf klish-$(KLISH_VERSION).tgz -C $(SONIC_CLI_ROOT)
2012
cd ${KLISH_SRC} && QUILT_PATCHES=${CURDIR}/patches quilt push -a
2113

22-
cd ${KLISH_SRC} && sh autogen.sh && ./configure --with-libxml2=/usr $(CROSS_CONFIGURE_OPTS) --enable-debug=no && make
14+
ifeq ($(CROSS_BUILD_ENVIRON),y)
15+
export PATH=/python_virtualenv/env3/bin/:${PATH}
16+
endif
17+
cd ${KLISH_SRC} && sh autogen.sh && ./configure --with-libxml2 --host=$(DEB_HOST_GNU_TYPE) --enable-debug=no CJSON_CFLAGS=-I/usr/include/cjson CJSON_LIBS=-lcjson && make
2318

2419
mkdir -p $(SONIC_CLI_ROOT)/target/.libs
2520
cp $(CURDIR)/clish_start $(SONIC_CLI_ROOT)/target/.

0 commit comments

Comments
 (0)