Lines 29-35
Link Here
|
29 |
# LINUX_MOD_INSTALL_PATH. |
29 |
# LINUX_MOD_INSTALL_PATH. |
30 |
|
30 |
|
31 |
PORTNAME= linux-kernel |
31 |
PORTNAME= linux-kernel |
32 |
PORTVERSION= 4.7.9 |
32 |
PORTVERSION= 4.9 |
33 |
CATEGORIES= devel |
33 |
CATEGORIES= devel |
34 |
MASTER_SITES= KERNEL_ORG/linux/kernel/v4.x |
34 |
MASTER_SITES= KERNEL_ORG/linux/kernel/v4.x |
35 |
DISTNAME= linux-${DISTVERSION} |
35 |
DISTNAME= linux-${DISTVERSION} |
Lines 109-128
Link Here
|
109 |
## For menuconfig, config, etc. |
109 |
## For menuconfig, config, etc. |
110 |
HOST_EXTRACFLAGS+= -DCURSES_LOC='<ncurses.h>' -DKBUILD_NO_NLS=1 |
110 |
HOST_EXTRACFLAGS+= -DCURSES_LOC='<ncurses.h>' -DKBUILD_NO_NLS=1 |
111 |
HOST_LOADLIBES+= -Wl,-rpath=${LOCALBASE}/lib |
111 |
HOST_LOADLIBES+= -Wl,-rpath=${LOCALBASE}/lib |
|
|
112 |
LINUX_ARCH?= x86 |
113 |
LINUX_SUBARCH?= x86 |
112 |
LINUX_INSTALL_PATH?= ${PREFIX}/linux-kernel |
114 |
LINUX_INSTALL_PATH?= ${PREFIX}/linux-kernel |
113 |
LINUX_MOD_INSTALL_PATH?= ${LINUX_INSTALL_PATH} |
115 |
LINUX_MOD_INSTALL_PATH?= ${LINUX_INSTALL_PATH} |
114 |
## Pretend to be Linux (for ACPI) |
116 |
## Pretend to be Linux (for ACPI) |
115 |
KCFLAGS+= -D_LINUX -D__linux__ |
117 |
KCFLAGS+= -D_LINUX -D__linux__ |
116 |
HOST_EXTRACFLAGS+= -I${BUILD_WRKSRC}/freebsd-build-support/include |
118 |
HOST_EXTRACFLAGS+= -I${BUILD_WRKSRC}/freebsd-build-support/include |
117 |
## Make sure ${LOCALBASE}/bin is in the PATH so Linux will build in |
119 |
## Make sure ${LOCALBASE}/bin is in the PATH for Poudriere/Synth |
118 |
## Poudriere |
|
|
119 |
MAKE_ENV+= PATH="${BUILD_WRKSRC}/freebsd-build-support/bin:${LOCALBASE}/bin:${PATH}" \ |
120 |
MAKE_ENV+= PATH="${BUILD_WRKSRC}/freebsd-build-support/bin:${LOCALBASE}/bin:${PATH}" \ |
120 |
HOST_EXTRACFLAGS="${HOST_EXTRACFLAGS}" \ |
121 |
HOST_EXTRACFLAGS="${HOST_EXTRACFLAGS}" \ |
121 |
HOST_LOADLIBES="${HOST_LOADLIBES}" \ |
122 |
HOST_LOADLIBES="${HOST_LOADLIBES}" \ |
122 |
KCFLAGS="${KCFLAGS}" \ |
123 |
KCFLAGS="${KCFLAGS}" \ |
123 |
BASH="${LOCALBASE}/bin/bash" |
124 |
BASH="${LOCALBASE}/bin/bash" |
124 |
# -j${MAKE_JOBS_NUMBER} |
125 |
MAKE_ARGS+= ARCH="${LINUX_ARCH}" \ |
125 |
MAKE_ARGS+= ARCH="x86" \ |
126 |
SUBARCH="${LINUX_SUBARCH}" \ |
126 |
KCONFIG_CONFIG="${LINUX_KCONFIG}" \ |
127 |
KCONFIG_CONFIG="${LINUX_KCONFIG}" \ |
127 |
INSTALL_PATH="${STAGEDIR}${LINUX_INSTALL_PATH}" \ |
128 |
INSTALL_PATH="${STAGEDIR}${LINUX_INSTALL_PATH}" \ |
128 |
INSTALL_MOD_PATH="${STAGEDIR}${LINUX_MOD_INSTALL_PATH}" \ |
129 |
INSTALL_MOD_PATH="${STAGEDIR}${LINUX_MOD_INSTALL_PATH}" \ |