From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jKLiC-0000GQ-Sd for mharc-grub-devel@gnu.org; Fri, 03 Apr 2020 08:46:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55269) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKLi9-0000Dz-Cw for grub-devel@gnu.org; Fri, 03 Apr 2020 08:46:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKLi5-0007kn-Ts for grub-devel@gnu.org; Fri, 03 Apr 2020 08:46:13 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:37336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jKLi5-0007iu-LG for grub-devel@gnu.org; Fri, 03 Apr 2020 08:46:09 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 033Ce8Bd136462; Fri, 3 Apr 2020 12:45:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2020-01-29; bh=eypkBScl+OhocyJl8EKDjVZPnMkBWYhE71a8M0O5a6c=; b=qWyvOj6Gu189a+pyUVVVkykRe0oQr2uQT++l5CGTyr/2yyFSYl0UmkBs++st956ovU4r C+P1Koy4BgZTXhsrt/4LkhEBIAG7w6r1zebUpQP0FaYwbWy073otB4XEhm6ycGMiL2fD r2ns2mNeQjBcFOrDJoZY5flQFrlOinY9dBTx350RFy/1d9wHkZl5FO7aB5kA30W4H46o XyifKf8ZtNB2KMI2NSAhCd9nLu6M8x1fPAC+Jy5wLBUAd1ljLKcdwISKJxD59jz2h0V8 KIHUbmzJde86YsIBPKil/LijlOX5ux5AAUVJcUC3i68whCBjb7rOBQAi45TPjoRfwc/1 jw== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 303cevgtty-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Apr 2020 12:45:48 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 033Ch59H108751; Fri, 3 Apr 2020 12:45:48 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 302g2mvjha-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Apr 2020 12:45:48 +0000 Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 033CjjMR014274; Fri, 3 Apr 2020 12:45:45 GMT Received: from tomti.i.net-space.pl (/10.175.166.95) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 03 Apr 2020 05:45:45 -0700 From: Daniel Kiper To: grub-devel@gnu.org Cc: eschwartz@archlinux.org, floppym@gentoo.org, javierm@redhat.com, leif@nuviainc.com, olaf@aepfle.de, phcoder@gmail.com, pjones@redhat.com Subject: [PATCH v2 3/4] INSTALL/configure: Update install doc and configure comment Date: Fri, 3 Apr 2020 14:45:02 +0200 Message-Id: <20200403124503.12779-4-daniel.kiper@oracle.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200403124503.12779-1-daniel.kiper@oracle.com> References: <20200403124503.12779-1-daniel.kiper@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9579 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 spamscore=0 mlxscore=0 adultscore=0 phishscore=0 bulkscore=0 suspectscore=1 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004030112 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9579 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 adultscore=0 clxscore=1015 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 suspectscore=1 mlxscore=0 impostorscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004030110 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.86 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2020 12:46:15 -0000 ..to reflect the GRUB build reality in them. Additionally, fix ./configure command example formatting in INSTALL file. Signed-off-by: Daniel Kiper --- INSTALL | 51 +++++++++++++++++++++++++++------------------------ configure.ac | 10 ++++++---- 2 files changed, 33 insertions(+), 28 deletions(-) diff --git a/INSTALL b/INSTALL index 8acb40902..d1b3bb60e 100644 --- a/INSTALL +++ b/INSTALL @@ -160,12 +160,12 @@ For this example the configure line might look like (more details below) (some options are optional and included here for completeness but some rarely used options are omitted): -./configure BUILD_CC=gcc BUILD_PKG_CONFIG=pkg-config --host=amd64-linux-gnu -CC=amd64-linux-gnu-gcc CFLAGS="-g -O2" PKG_CONFIG=amd64-linux-gnu-pkg-config ---target=arm --with-platform=uboot TARGET_CC=arm-elf-gcc -TARGET_CFLAGS="-Os -march=armv6" TARGET_CCASFLAGS="-march=armv6" -TARGET_OBJCOPY="arm-elf-objcopy" TARGET_STRIP="arm-elf-strip" -TARGET_NM=arm-elf-nm TARGET_RANLIB=arm-elf-ranlib LEX=gflex +./configure BUILD_CC=gcc BUILD_PKG_CONFIG=pkg-config --host=amd64-linux-gnu \ + CC=amd64-linux-gnu-gcc CFLAGS="-g -O2" PKG_CONFIG=amd64-linux-gnu-pkg-config \ + --target=arm --with-platform=uboot TARGET_CC=arm-elf-gcc \ + TARGET_CFLAGS="-Os -march=armv6" TARGET_CCASFLAGS="-march=armv6" \ + TARGET_OBJCOPY="arm-elf-objcopy" TARGET_STRIP="arm-elf-strip" \ + TARGET_NM=arm-elf-nm TARGET_RANLIB=arm-elf-ranlib LEX=gflex You need to use following options to specify tools and platforms. For minimum version look at prerequisites. All tools not mentioned in this section under @@ -182,28 +182,31 @@ corresponding platform are not needed for the platform in question. - For host 1. --host= to autoconf name of host. - 2. CC= for gcc able to compile for host - 3. HOST_CFLAGS= for C options for host. - 4. HOST_CPPFLAGS= for C preprocessor options for host. - 5. HOST_LDFLAGS= for linker options for host. - 6. PKG_CONFIG= for pkg-config for host (optional). - 7. Libdevmapper if any must be in standard linker folders (-ldevmapper) (optional). - 8. Libfuse if any must be in standard linker folders (-lfuse) (optional). - 9. Libzfs if any must be in standard linker folders (-lzfs) (optional). - 10. Liblzma if any must be in standard linker folders (-llzma) (optional). + 2. CC= for gcc able to compile for host and target. + 3. CFLAGS= for C options for host and target. + 4. HOST_CFLAGS= for C options for host. + 5. HOST_CPPFLAGS= for C preprocessor options for host. + 6. HOST_LDFLAGS= for linker options for host. + 7. PKG_CONFIG= for pkg-config for host (optional). + 8. Libdevmapper if any must be in standard linker folders (-ldevmapper) (optional). + 9. Libfuse if any must be in standard linker folders (-lfuse) (optional). + 10. Libzfs if any must be in standard linker folders (-lzfs) (optional). + 11. Liblzma if any must be in standard linker folders (-llzma) (optional). - For target 1. --target= to autoconf cpu name of target. 2. --with-platform to choose firmware. - 3. TARGET_CC= for gcc able to compile for target - 4. TARGET_CFLAGS= for C options for target. - 5. TARGET_CPPFLAGS= for C preprocessor options for target. - 6. TARGET_CCASFLAGS= for assembler options for target. - 7. TARGET_LDFLAGS= for linker options for target. - 8. TARGET_OBJCOPY= for objcopy for target. - 9. TARGET_STRIP= for strip for target. - 10. TARGET_NM= for nm for target. - 11. TARGET_RANLIB= for ranlib for target. + 3. CC= for gcc able to compile for host and target. + 4. CFLAGS= for C options for host and target. + 5. TARGET_CC= for gcc able to compile for target. + 6. TARGET_CFLAGS= for C options for target. + 7. TARGET_CPPFLAGS= for C preprocessor options for target. + 8. TARGET_CCASFLAGS= for assembler options for target. + 9. TARGET_LDFLAGS= for linker options for target. + 10. TARGET_OBJCOPY= for objcopy for target. + 11. TARGET_STRIP= for strip for target. + 12. TARGET_NM= for nm for target. + 13. TARGET_RANLIB= for ranlib for target. - Additionally for emu, for host and target. 1. SDL is looked for in standard linker directories (-lSDL) (optional) diff --git a/configure.ac b/configure.ac index fc74ee800..06bc4fb0c 100644 --- a/configure.ac +++ b/configure.ac @@ -26,10 +26,12 @@ dnl This is necessary because the target type in autoconf does not dnl describe such a system very well. dnl dnl The current strategy is to use variables with no prefix (such as -dnl CC, CFLAGS, etc.) for the host type, variables with prefix "BUILD_" -dnl (such as BUILD_CC, BUILD_CFLAGS, etc.) for the build type and variables -dnl with the prefix "TARGET_" (such as TARGET_CC, TARGET_CFLAGS, etc.) are -dnl used for the target type. See INSTALL for full list of variables. +dnl CC, CFLAGS, etc.) for the host and target type, variables with +dnl prefix "BUILD_" (such as BUILD_CC, BUILD_CFLAGS, etc.) for the +dnl build type, variables with prefix "HOST_" (such as HOST_CC, +dnl HOST_CFLAGS, etc.) for the host type and variables with the prefix +dnl "TARGET_" (such as TARGET_CC, TARGET_CFLAGS, etc.) are used for +dnl the target type. See INSTALL for full list of variables. AC_INIT([GRUB],[2.05],[bug-grub@gnu.org]) -- 2.11.0