From: Luis R. Rodriguez Date: Fri, 6 Jul 2012 21:18:39 +0000 (-0700) Subject: compat: warn libc >= 2.14 is required to compile against 3.4.4 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=47dbccf1c7792c78efa422022ca8118f9824604c;p=openwrt%2Fstaging%2Fblogic.git compat: warn libc >= 2.14 is required to compile against 3.4.4 Warn when using bin/get-compat-kernels. We could later add a dynamic distro-agnostic check... Signed-off-by: Luis R. Rodriguez --- diff --git a/bin/get-compat-kernels b/bin/get-compat-kernels index ed74720a7733..d80c0a794768 100755 --- a/bin/get-compat-kernels +++ b/bin/get-compat-kernels @@ -210,11 +210,15 @@ SPACE_PER_KERNEL_DEB="13" echo -e "This will download ${YELLOW}${NUM_KERNELS}${NORMAL} kernel headers to allow you to" echo -e "cross compile any module over these kernels with ${GREEN}ckmake${NORMAL}." echo -e "The download payload is about ${YELLOW}~ $((${SPACE_PER_KERNEL_DEB} * ${NUM_KERNELS})) ${CYAN}MiB${NORMAL}, once uncompressed" -echo -e "it will use ${GREEN}sudo${NORMAL} to stash kernel header files under ${BLUE}/usr/src/${NORMAL} and ${BLUE}/lib/modules/${NORMAL}" -echo -e "and consume about ~ ${YELLOW}$((${NUM_KERNELS} * ${SPACE_PER_KERNEL})) ${RED}MiB${NORMAL} of space." +echo -e "it will use ${GREEN}sudo${NORMAL} to stash kernel header files under ${BLUE}/usr/src/${NORMAL}" +echo -e "and ${BLUE}/lib/modules/${NORMAL} and consume about ~ ${YELLOW}$((${NUM_KERNELS} * ${SPACE_PER_KERNEL})) ${RED}MiB${NORMAL} of space." +echo -e "" +echo -e "Note: you will need ${CYAN}libc${NORMAL} > ${GREEN}2.14${NORMAL} otherwise compilation may" +echo -e "fail with Linux ${CYAN}3.4.4${NORMAL}" echo -e "" echo -e "The kernel headers used are from ${PURPLE}${UNDERLINE}Vanilla${NORMAL} kernels" -echo -e "from the Ubuntu mainline / vanilla kernel PPA:" +echo -e "from the Ubuntu mainline / vanilla kernel PPA and are extracted" +echo -e "using ${GREEN}ar${NORMAL} and ${GREEN}tar${NORMAL}:" echo -e "" echo -e "${BLUE}http://kernel.ubuntu.com/~kernel-ppa/mainline/${NORMAL}" echo -e ""