fix build system
This commit is contained in:
parent
7dc38f83f7
commit
1edb07ac50
2
configure
vendored
2
configure
vendored
@ -845,7 +845,7 @@ fi
|
|||||||
echo -n "Creating mk/config.mk..."
|
echo -n "Creating mk/config.mk..."
|
||||||
cp -f $rootdir/CONFIG $rootdir/mk/config.mk
|
cp -f $rootdir/CONFIG $rootdir/mk/config.mk
|
||||||
for key in "${!CONFIG[@]}"; do
|
for key in "${!CONFIG[@]}"; do
|
||||||
sed -i.bak -r "s#^\s*CONFIG_${key}=.*#CONFIG_${key}\?=${CONFIG[$key]}#g" $rootdir/mk/config.mk
|
sed -i.bak -r "s#[[:space:]]*CONFIG_${key}=.*#CONFIG_${key}\?=${CONFIG[$key]}#g" $rootdir/mk/config.mk
|
||||||
done
|
done
|
||||||
# On FreeBSD sed -i 'SUFFIX' - SUFFIX is mandatory. So no way but to delete the backed file.
|
# On FreeBSD sed -i 'SUFFIX' - SUFFIX is mandatory. So no way but to delete the backed file.
|
||||||
rm -f $rootdir/mk/config.mk.bak
|
rm -f $rootdir/mk/config.mk.bak
|
||||||
|
@ -137,7 +137,7 @@ ifeq ($(MAKE_PID),)
|
|||||||
MAKE_PID := $(shell echo $$PPID)
|
MAKE_PID := $(shell echo $$PPID)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
MAKE_NUMJOBS := $(shell ps T | sed -nE 's/\s*$(MAKE_PID)\s.* (-j|--jobs=)( *[0-9]+).*/\1\2/p')
|
MAKE_NUMJOBS := $(shell ps T | sed -nE 's/[[:space:]]*$(MAKE_PID)[[:space:]].* (-j|--jobs=)( *[0-9]+).*/\1\2/p')
|
||||||
|
|
||||||
all: $(SPDK_ROOT_DIR)/dpdk/build-tmp
|
all: $(SPDK_ROOT_DIR)/dpdk/build-tmp
|
||||||
$(Q)# DPDK doesn't handle nested make calls, so unset MAKEFLAGS
|
$(Q)# DPDK doesn't handle nested make calls, so unset MAKEFLAGS
|
||||||
|
Loading…
Reference in New Issue
Block a user