From a732501dc25554a257a8343cc630aa9ec17d5e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 29 Apr 2017 21:10:05 +0200 Subject: linux package fixes --- sys-boot/linux/linux-4.10.13.ebuild | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'sys-boot') diff --git a/sys-boot/linux/linux-4.10.13.ebuild b/sys-boot/linux/linux-4.10.13.ebuild index a05ff34..19b339a 100644 --- a/sys-boot/linux/linux-4.10.13.ebuild +++ b/sys-boot/linux/linux-4.10.13.ebuild @@ -27,30 +27,26 @@ src_configure() { [ "$ARCH" = "amd64" ] && ARCH="x86" emake mrproper - # TODO support cross compile # Generate default configuration emake defconfig + # Prepare list of arguments + ARGS="" + for U in $IUSE; do + ARGS="$ARGS $(usev $U)" + done + # Apply configuration ( - ARGS="" - for U in $IUSE; do - ARGS="$ARGS $(usev $U)" - done cd "${S}" "${FILESDIR}"/config_prepare.sh $ARGS - ) + ) || fail # Process changes - emake olddefconfig + emake olddefconfig 2>/dev/null # Check changes - EOUT="$("${FILESDIR}"/config_miss.sh $ARGS)" - if [ $? -ne 0 ]; then - eerror "Configuration failed: -$EOUT" - fail - fi + eerror "$("${FILESDIR}"/config_miss.sh $ARGS)" || fail } src_install() { -- cgit v1.2.3