From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 36CC3A04B6; Thu, 24 Sep 2020 18:37:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 10E531DE8D; Thu, 24 Sep 2020 18:37:51 +0200 (CEST) Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by dpdk.org (Postfix) with ESMTP id 80FFC1DDED for ; Thu, 24 Sep 2020 18:37:49 +0200 (CEST) Received: by mail-pj1-f67.google.com with SMTP id jw11so31640pjb.0 for ; Thu, 24 Sep 2020 09:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=Gn1wAmKCp8IPBkS6nqAgE/1asKs4tUtygpQOqB4/25A=; b=R31VRFQ9LiMayCbBDVKZ6FFKh3AdeL+v5VE7Zvf4l8n+vAVNUUs4T1lzxMR1LECO9R s1rMZw8Q4ITDJM5RrQ70gaC6MG395YKyuPvNmbBjnducuYJ8L3O5BvaA7eDgeOjUHT5j 0r30ZRjDYiKUZc4f+2crNkMIAa+mKY/pr04/8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=Gn1wAmKCp8IPBkS6nqAgE/1asKs4tUtygpQOqB4/25A=; b=mxOmL8XyRyWOQZyhXAF/aTAH8T0Ynr+rUBugHK2/ZwqGBojFwWSDU5AFdnokLOiv53 GldlWOIzkEKBZO9oCwIDaTcUl5W6zYad41oChkPsLXJZQ4vbWqQiYjGctYJ0vzrZxJsv +enFBwxWNL7smKPg5sfEM/fJFHaNb1rqWK1Oxwb5e8sy98WpNQig2UuNs3UhX29RO2Uo QxxqmUgU1I7ATeM/weAJ+crn6HqnIZSbf2dDTGMBsmi3RNdrM2uyDYO3Ub1IYQ0OiEa9 +lSIb49Gjblo0E12vYiccOrJ4gr/rkQfMRAsq4ZcTFkWEDT1uUWK9qVHii0QJSDPDKyf cBgg== X-Gm-Message-State: AOAM531ehX0aK+s+QW9ALcBcvWVIM6Ukdr8hzaOTkuADc+ip6aTPA+Zm WGdeODhe7FOmiGczmYml1JJmyg== X-Google-Smtp-Source: ABdhPJwvik64GB7vTj8/CruPHX+eKpesAyrJhdeKJZnd/+PzBpHFTLWbD3hlFs1L4F8uDWcef/dXWA== X-Received: by 2002:a17:90b:617:: with SMTP id gb23mr78997pjb.36.1600965468478; Thu, 24 Sep 2020 09:37:48 -0700 (PDT) Received: from localhost.localdomain ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id x6sm18641pjp.25.2020.09.24.09.37.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 09:37:47 -0700 (PDT) From: Lance Richardson To: Bruce Richardson Cc: dev@dpdk.org Date: Thu, 24 Sep 2020 12:37:42 -0400 Message-Id: <20200924163742.321600-1-lance.richardson@broadcom.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add meson cross files for building i686 targets using gcc on x86_64 linux hosts. Uusage example: meson --cross-file config/x86/cross-i686-linux-gcc build-i686 ninja -C build-i686 Signed-off-by: Lance Richardson --- Red Hat distros use a different name for the 32-bit pkg-config command from most other distros, maybe there is a better way to handle this than using separate files. Others will probably have better naming suggestions for the files. config/x86/cross-i686_linux_gcc | 15 +++++++++++++++ config/x86/cross-i686_redhat_gcc | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 config/x86/cross-i686_linux_gcc create mode 100644 config/x86/cross-i686_redhat_gcc diff --git a/config/x86/cross-i686_linux_gcc b/config/x86/cross-i686_linux_gcc new file mode 100644 index 000000000..a4169f969 --- /dev/null +++ b/config/x86/cross-i686_linux_gcc @@ -0,0 +1,15 @@ +[binaries] +c = 'gcc' +ar = 'gcc-ar' +strip = 'strip' +pkgconfig = 'i686-linux-gnu-pkg-config' + +[properties] +c_args = ['-m32'] +c_link_args = ['-m32'] + +[host_machine] +system = 'linux' +cpu_family = 'x86' +cpu = 'i686' +endian = 'little' diff --git a/config/x86/cross-i686_redhat_gcc b/config/x86/cross-i686_redhat_gcc new file mode 100644 index 000000000..2ae8b33dd --- /dev/null +++ b/config/x86/cross-i686_redhat_gcc @@ -0,0 +1,15 @@ +[binaries] +c = 'gcc' +ar = 'gcc-ar' +strip = 'strip' +pkgconfig = 'i686-redhat-linux-gnu-pkg-config' + +[properties] +c_args = ['-m32'] +c_link_args = ['-m32'] + +[host_machine] +system = 'linux' +cpu_family = 'x86' +cpu = 'i686' +endian = 'little' -- 2.25.1