#!/bin/sh HOSTCFLAGS="$CFLAGS" \ HOSTLDFLAGS="$LDFLAGS" \ make -j$(nproc) menuconfig ## explanation # # HOSTCFLAGS HOSTLDFLAGS: # the linux kernel build process uses these rather than CFLAGS and LDFLAGS. # # menuconfig: ncurses-based configuration. other modes are also available.