From patchwork Tue Sep 11 14:06:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 146465 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3686886ljw; Tue, 11 Sep 2018 07:11:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYqsEjgCp3gO1WdHgaSjY3HIewIKnfacz0ZsliwWGuNWHC7I5bEYpWCiJj/baZwa5W0JbJ3 X-Received: by 2002:a0c:bd0e:: with SMTP id m14-v6mr18589312qvg.168.1536675061373; Tue, 11 Sep 2018 07:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536675061; cv=none; d=google.com; s=arc-20160816; b=eU7y9z03ymoT1AyIX0+KPMu8sYnZiFFEUYnA+xXY+eicAZyj3Id8uj38yEEWJpm7r7 kSOUTf3Z2IBcJxcYlXZmW4plsObUbQm/8BQPxksyTJOwdkAuzOMbnuWlTf9Noe1DuUuf Cc0F8AOh+QCQgb7C08lRsc2IsSu92qg7MEnijLvHtZP9YoeEvj66SX+tkGJdAWULjBTk iGLP/CRv0xHs/3C0Wkds/n3ZfVb2/ecN2QLt2OzNWFI26qVtORB3Zm1FkeQDUQ3C+DBE cCygULFRlrEG5YeoJHq4E56kfyunfUVItIBYQ+w27WLnUQpFXrIW4Q1gjX6Sb6w2sJyp ubfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=aN5bv7z2ZAT2+zhI97oK6xAEDScQ1qnnmDMdddTHoqU=; b=hhP6U3MD6tGdYbmVkKK1gjiDyjRVDyG0pCYnsZi0Er+9ITlgeQyelTH9nFf0YQtAsM 6BEh5lueXhJyx0XbARyxvn6p0nmjN3N87fpQCCw4hC6bL7MoZYmA1HyUgrD6kKM0bKOk gjBKNH61Q61pmDkWKliHnyb88Lnd9G3pWz6FTQG7MVTdbIPZzR1SSyGFcO4poxQmQASb 7c6jCrip+oSA6tlcq/b4bFs2atECmjvqh0uBM5DwmE5SDbesyUKrMJ34kDQXfuj191Sf ulIEiXCelmdtXBxIfmT3wWTDOvtZnwpeLnI9hQncztk5BXD6UBmIL9SysmZzUuePhClB u5Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="dc6Obp/1"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id x26-v6si4291736qkf.106.2018.09.11.07.11.01 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 11 Sep 2018 07:11:01 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="dc6Obp/1"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzjNc-0005BJ-Md for patch@linaro.org; Tue, 11 Sep 2018 10:11:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzjJP-0008Qk-JU for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzjJL-0007Vg-3O for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:39 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:34508) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzjJK-0007UJ-P8 for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:35 -0400 Received: by mail-wr1-x432.google.com with SMTP id g33-v6so26246361wrd.1 for ; Tue, 11 Sep 2018 07:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aN5bv7z2ZAT2+zhI97oK6xAEDScQ1qnnmDMdddTHoqU=; b=dc6Obp/1C/RdBmUSQXLL8LGAVE+79xa8d+lfqGBuUeKX2Aa99a4HBSSyCvh1JTcOmm B+gqyxZk71UknLO/6SrC/8/eNGlwUG51TkZnuMx7oqqODmaA8Z6J9/3CWvw9HxNZRq+i OKnJxffdrv+byZskk3YVen2jMfwGgW43iT3Gw= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=aN5bv7z2ZAT2+zhI97oK6xAEDScQ1qnnmDMdddTHoqU=; b=S7V7YtjW1rmxIwjQjcueuiZFUMZxObo4pOGRFtnSK1+jq8uyW2LWtJ3yrJYsjfiwTm zfmJ/oaJH4c+UjiK7s6LTiu3OoPejIuEpOePsuQDh1ZnINXhNpiknBXoYwY5Y1MDs/ff 6g2F/XWhfeCll9r+KLNSyPjBkxlGpBZ41sMBO6/kIs7odB7rShVwKWvO2Up29JSuUZEo zOiQZGlcdaXfN6BshrSUoLmgYBc05Y0lOdaII3Bx5alkoJLEC0LzP+RY06GroMhVsiAi xtHzCDn7I+ufdqFyS7SMxZlotYa5gAcT3+Y2C+mtaLZEy03cuvr96wUcla0SooX96EK+ nH+g== X-Gm-Message-State: APzg51CWgwr4vyBWkhmFXO4JOBhvnkfN9VIXB3TTymKAqkCcznjpkje/ lQoxkNqA7HaekKLs2r7rFNsCAg== X-Received: by 2002:a05:6000:1252:: with SMTP id j18mr14646686wrx.157.1536674793280; Tue, 11 Sep 2018 07:06:33 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id j191-v6sm1699454wmb.37.2018.09.11.07.06.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Sep 2018 07:06:31 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 70B8A3E0635; Tue, 11 Sep 2018 15:06:31 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 11 Sep 2018 15:06:28 +0100 Message-Id: <20180911140631.18481-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180911140631.18481-1-alex.bennee@linaro.org> References: <20180911140631.18481-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::432 Subject: [Qemu-devel] [RFC PATCH 1/4] docker: add debian-buildroot-base X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , 1791796@bugs.launchpad.net, =?utf-8?q?Ale?= =?utf-8?b?eCBCZW5uw6ll?= , thuth@redhat.com, =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We can build some more cross-compilers using buildroot. This base system contains simply the minimum number of tools required for buildroot to work. We also download and unpack the buildroot source tree as that will be common for all system deriving from it. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 2 +- .../dockerfiles/debian-buildroot-base.docker | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 tests/docker/dockerfiles/debian-buildroot-base.docker -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index d3101afecd..74a82de48a 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -6,7 +6,7 @@ DOCKER_SUFFIX := .docker DOCKER_FILES_DIR := $(SRC_PATH)/tests/docker/dockerfiles DOCKER_DEPRECATED_IMAGES := debian # we don't run tests on intermediate images (used as base by another image) -DOCKER_PARTIAL_IMAGES := debian debian8 debian9 debian8-mxe debian-ports debian-sid debian-bootstrap +DOCKER_PARTIAL_IMAGES := debian debian8 debian9 debian8-mxe debian-ports debian-sid debian-bootstrap debian-buildroot-base DOCKER_IMAGES := $(filter-out $(DOCKER_DEPRECATED_IMAGES),$(sort $(notdir $(basename $(wildcard $(DOCKER_FILES_DIR)/*.docker))))) DOCKER_TARGETS := $(patsubst %,docker-image-%,$(DOCKER_IMAGES)) # Use a global constant ccache directory to speed up repetitive builds diff --git a/tests/docker/dockerfiles/debian-buildroot-base.docker b/tests/docker/dockerfiles/debian-buildroot-base.docker new file mode 100644 index 0000000000..c4a29abadd --- /dev/null +++ b/tests/docker/dockerfiles/debian-buildroot-base.docker @@ -0,0 +1,26 @@ +# +# Buildroot base setup on Debian +# + +FROM debian:stretch-slim +ENV BUILDROOT_VERSION=2018.08 + +# Duplicate deb line as deb-src +RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list + +# Install common build utilities +RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt install -y bc \ + build-essential \ + cpio \ + file \ + python \ + unzip \ + rsync \ + wget + +# Grab the current buildroot version and unpack in /opt +RUN mkdir -p /opt +RUN cd /opt && wget https://buildroot.org/downloads/buildroot-${BUILDROOT_VERSION}.tar.gz +RUN cd /opt && tar -xvf buildroot-${BUILDROOT_VERSION}.tar.gz From patchwork Tue Sep 11 14:06:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 146462 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3683969ljw; Tue, 11 Sep 2018 07:08:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZl0MZeA8E7wsBb7hmpnU0NcxNm/RfUQ1bVBEWr/GEe7Vnh07xYc18rhMzXlKXoDEG16l7R X-Received: by 2002:a37:e104:: with SMTP id c4-v6mr19089340qkm.28.1536674910220; Tue, 11 Sep 2018 07:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536674910; cv=none; d=google.com; s=arc-20160816; b=qk0sCngx1CcXJ1uWPAOq5eSPHmZ+XsJizXH4mco02E/q/IGiVU9UlP+8PXWU1q1P5w xZpW7g5yEsC/zgGZJTQcFcV8epdDcEnyi0EwNYLCQmiRn/nhlRjeD5M6SwmDWKE7Wq26 rC5OGtoC1CjLdMmE0sEV8S/3cNkVrgr5AxFhhZUN9a2VffGe5LKSew8xt1OunGu0zXmd OBuvkM7DBLp2p7jDGwvMVqmWCBqMQSJcNSS0JE/bk5nKPZHALyAYqiThDjiWDm56swjs B8RBBV9eHByyhujQZHkFzkwXzCZfn1cw5hmTFH+Bhoq3g9uc1J9iPI2lubXqvkFYEGv8 hWDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=DnOpiikx9WdPsyMi/2ob1l+tMbZfgHVd7PcdomXLSuo=; b=nqshjOLUOVe/OHIrs/AxVNHiMNDCSROvD5h4TeTPOaNMwkSHbXL7PwaPcLgUVu+f1y owFtNowfrnrogm7d1RiQcKgZEIbLR6IPCD+EFdb35aQFN6ADeH6GkE795K/vqQ4Z96jY tRbDSeb/LsCt8O7e19z/Q3VlEnYZmIUcGHDiREiMZu5vZPaBtZUsGl65AnwdNj8HPViG X8lGpCPQD3J9R2WuD/PulZNSNt8SYQN3MQ+d/EHwMYKFaRxr4u3bp+QUtH5t5EUChdGD ZPsbjykQDpVuoxLLv5Uh2sdNhYrhy3nfFO1lQAOyeuqpLjcKH4YShbjG6RrploeGRnAd JHdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=EGk7v3rk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id j22-v6si360461qtj.313.2018.09.11.07.08.30 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 11 Sep 2018 07:08:30 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=EGk7v3rk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzjLB-0001R6-ML for patch@linaro.org; Tue, 11 Sep 2018 10:08:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzjJR-0008RW-Jo for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzjJM-0007Wj-15 for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:41 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:36764) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzjJL-0007VN-N8 for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:35 -0400 Received: by mail-wr1-x435.google.com with SMTP id e1-v6so17150980wrt.3 for ; Tue, 11 Sep 2018 07:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DnOpiikx9WdPsyMi/2ob1l+tMbZfgHVd7PcdomXLSuo=; b=EGk7v3rk6/5A//pDyn9l67U4gq7Rywfs0qWavTvpr0F5o7128C9JKxW8YIpFypyxMB 4g7D8DmkbnjrJWiQt+RnumYg5PWiXBFb5hkLWeeaH/C8A1CF0JzLDHLo+xw4U2xCRQ7P go/RFNqfQ/4ICE8k5bz+d/y+VkyxyoHkDjlTg= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=DnOpiikx9WdPsyMi/2ob1l+tMbZfgHVd7PcdomXLSuo=; b=cgbVTJbn4C2pRqhD13GpguZ7VltFX+rIAGd6avZb6CtYScx0bzNTg5RluxFrwU047q 7mk71dfVET5MYs0fYqlH6PPqXT62so9fBYVjlzYCEUPRICqPzfYahhvZpzFlxXbjOPae kRZvL0amEPYnrRIMHqG7kxb3olBqJMWmWscBSyz3R+7o+wVn5dtl1zDLZThEwebs7/1z 8zasE9UomipNMbxe917z07rmOR/wG6aF0Mo14EgY1ud4gSvNs2Rt7Za91DnAH5YvVBDO hErlAQVki4/hqJyYvrnT2BiPl5x6lm+0ds7Ob/KMEwOGqUvmeRKZuapgk+FUaCx0m8To JAAQ== X-Gm-Message-State: APzg51DFb+cgXeHBKx7RSRd3GA5621+Twv5KeoQoueYrDWOeFGl0jDqY UwprBceqpRSUDucSEU172ootzA== X-Received: by 2002:adf:fc44:: with SMTP id e4-v6mr19611714wrs.9.1536674794149; Tue, 11 Sep 2018 07:06:34 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a37-v6sm41231204wrc.21.2018.09.11.07.06.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Sep 2018 07:06:33 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 855713E066A; Tue, 11 Sep 2018 15:06:31 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 11 Sep 2018 15:06:29 +0100 Message-Id: <20180911140631.18481-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180911140631.18481-1-alex.bennee@linaro.org> References: <20180911140631.18481-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::435 Subject: [Qemu-devel] [RFC PATCH 2/4] docker: add buildroot-nios2-cross image X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , 1791796@bugs.launchpad.net, =?utf-8?q?Ale?= =?utf-8?b?eCBCZW5uw6ll?= , thuth@redhat.com, =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Build a buildroot toolchain for the nios2 target. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 4 ++++ tests/docker/dockerfiles/buildroot-nios2-cross.docker | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/docker/dockerfiles/buildroot-nios2-cross.docker -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 74a82de48a..a8dfde8ed5 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -120,6 +120,10 @@ docker-image-debian-riscv64-cross: docker-image-debian-sid docker-image-debian-powerpc-cross: docker-image-debian-sid docker-image-travis: NOUSER=1 +# Buildroot base images +# These involve building the toolchains and can take some time +docker-image-buildroot-nios2-cross: docker-image-debian-buildroot-base + # Specialist build images, sometimes very limited tools docker-image-tricore-cross: docker-image-debian9 diff --git a/tests/docker/dockerfiles/buildroot-nios2-cross.docker b/tests/docker/dockerfiles/buildroot-nios2-cross.docker new file mode 100644 index 0000000000..e573f0fa55 --- /dev/null +++ b/tests/docker/dockerfiles/buildroot-nios2-cross.docker @@ -0,0 +1,10 @@ +# +# NIOS II toolchain +# +FROM qemu:debian-buildroot-base + +RUN cd /opt/buildroot-${BUILDROOT_VERSION} && make qemu_nios2_10m50_defconfig +RUN cd /opt/buildroot-${BUILDROOT_VERSION} && make toolchain + +# The toolchain is in /opt/buildroot-${BUILDROOT_VERSION}/output/host/bin/nios2-* +RUN ln -s /opt/buildroot-${BUILDROOT_VERSION}/output/host/bin/nios2-* /usr/bin From patchwork Tue Sep 11 14:06:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 146460 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3682156ljw; Tue, 11 Sep 2018 07:07:04 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdab2RDDBhSMfsVLDRB1vcJL9nEMStPxmfiLujfOSdWywkWbFQtZlF4e2q26RfdOltkrR5nm X-Received: by 2002:a0c:cd82:: with SMTP id v2-v6mr18547473qvm.84.1536674824467; Tue, 11 Sep 2018 07:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536674824; cv=none; d=google.com; s=arc-20160816; b=UzBxssKuBCa5VBwb20UC/qCyQh86N21J/X49r2bvEKZkICOOReqjWpL3kblEx1EvWX O3k0xrL6cYarrexq6yYknJkp381ddM/KFP5PXMQidZsfAPMmu/YALLp6wfUo3gsrJ/VD TlHq6bB0Khnao/N0Mqbdu9NBN+bAdDlDPK3mmMitJGEy05Fz6uMq/IgTWs/HW9ucB1tG OYJz+KD1x/OsvLCXniTiUO2CksbkHY0UtdfEi/+gjSaWdnP6Ua85icrIYELF3FqMoenm z2VAmurO8F7ZezbLCJMnbrY7jhNv2SGrFfvBIuQdtB09xtxewni0ueAqLw68TNHh2uYp 1g/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=V929Cl1Lo2nQ0sj8zhZ2+3LApj1XzC9SHD9kdWSb4xw=; b=mg7NcQ/4XDJ/NgnS9Uq4bVRc7lYXeHlMzVx6rdg+JM7nBhJVfLlcCREY1vg5QVtKW0 y+85/dmhNXdR+kGyeLGLbV++XoGGEZI3DiCPU1qPqD6IwsCCvn2jVVBr+yY0jTEoCKeR kxb67DFwQTqplxB7uf65taBXYC+otSX1jP5X97t20suaUFNCXhw+mz7doAIMlX+q2dIX oqRfk/cve5/hB1HBDoHjmapl8Z7dqtXYJGcfx4CM3PenL0PHu0NYjlAHBXt2yxCci/K2 V2yoU2ACkScvrhqVutOmmUGPakrbas+xH3NP4OvmgtOD4Ti8SaTU6CWGMVekZHkz0Ie8 bhJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=EhnlTFkV; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id d5-v6si1859324qkf.371.2018.09.11.07.07.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 11 Sep 2018 07:07:04 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=EhnlTFkV; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzjJn-0008UU-Rv for patch@linaro.org; Tue, 11 Sep 2018 10:07:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzjJP-0008Qo-LU for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzjJN-0007Xf-2h for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:39 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:37453) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzjJM-0007WC-O7 for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:36 -0400 Received: by mail-wm0-x242.google.com with SMTP id n11-v6so1147332wmc.2 for ; Tue, 11 Sep 2018 07:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=V929Cl1Lo2nQ0sj8zhZ2+3LApj1XzC9SHD9kdWSb4xw=; b=EhnlTFkVDPEY4+/BMwNXF3KRaEDSlm77I8vzITpA0JCPNlpaoKXJ6pyrlYF6FvzrTV 2dDI6J9/TrIclcRJoZfwBH8GSrayiJjPjDL5uvWkMUKPKEWzZfB0/HGReWWDSdXTAEcl f8Tpf1vaOTe0MTA9fsf9muSdnnuQkEDF7PBtU= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=V929Cl1Lo2nQ0sj8zhZ2+3LApj1XzC9SHD9kdWSb4xw=; b=jDpQlGGxiNZDA+1tkYqbsdOQ5CSza6aJouEcVv/W5+ItxTzQQxKVslK60vOviJUE+Q 49LRzwvrWxJAVUKzSGZZNKPv/kiOZyQNUm8dVSC1jdnKtGTq6OLg5mWaJFcVpOR8crrl yVykqtEdfQczcmkCOTTyk8CowDpewuZcAieeIUH70BfuZsF0i+6+AcYKssXYTNcaYqe5 qHgZkEG6rhES7I9ZS4RlPlFm+Nf1GhS6jJxahL0H53yG7tpABC9xmNiqe+yfbxDubU0L 3K9tNjxi64oLJMDDnqXT6uoP/zuz0Uoz2DNWPHmFQdaFBlTx3+nuP/ZxEf2lHuQM0kZj DLng== X-Gm-Message-State: APzg51DfaHiZO8lCIfMDLtxBtDHAcRzXNWOoEfWm1e9qNn+kNH0Qay83 nfvP03jQgkSK5mm0fNVVKYhBAA== X-Received: by 2002:a1c:4d09:: with SMTP id o9-v6mr1554556wmh.134.1536674795099; Tue, 11 Sep 2018 07:06:35 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 204-v6sm1849901wmh.25.2018.09.11.07.06.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Sep 2018 07:06:33 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 98CFB3E071E; Tue, 11 Sep 2018 15:06:31 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 11 Sep 2018 15:06:30 +0100 Message-Id: <20180911140631.18481-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180911140631.18481-1-alex.bennee@linaro.org> References: <20180911140631.18481-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::242 Subject: [Qemu-devel] [RFC PATCH 3/4] linux-user/nios2: bump min uname to 4.16.0 [!HACK] X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 1791796@bugs.launchpad.net, Riku Voipio , =?utf-8?q?Alex_Benn=C3=A9e?= , thuth@redhat.com, Laurent Vivier Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is to work around the limitations of the buildroot qemu_nios2_10m50_defconfig which sets the base kernel version for glibc. Signed-off-by: Alex Bennée --- linux-user/nios2/target_syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/linux-user/nios2/target_syscall.h b/linux-user/nios2/target_syscall.h index ca6b7e69f6..905b80d112 100644 --- a/linux-user/nios2/target_syscall.h +++ b/linux-user/nios2/target_syscall.h @@ -2,7 +2,7 @@ #define TARGET_SYSCALL_H #define UNAME_MACHINE "nios2" -#define UNAME_MINIMUM_RELEASE "3.19.0" +#define UNAME_MINIMUM_RELEASE "4.16.0" struct target_pt_regs { unsigned long r8; /* r8-r15 Caller-saved GP registers */ From patchwork Tue Sep 11 14:06:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 146463 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3686509ljw; Tue, 11 Sep 2018 07:10:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYectbGPmiMrc6HsAATnVEHyIpXfl4He8Jdtq0zkiwn0FxlCdKBI65sKpPLkn9bEp52w3vz X-Received: by 2002:a0c:db87:: with SMTP id m7-v6mr18607167qvk.90.1536675041290; Tue, 11 Sep 2018 07:10:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536675041; cv=none; d=google.com; s=arc-20160816; b=JGwuw8s17vNgYCL/THKuRL0w+snwhdr9/WDi5wLQCjS3CEkq4R9g87YTZ/KWBToL5k wbgSyFALB+kna7h2tYDuI3NKyHMCdY+kTnI8ETpI2atMUJe8C6NxgZ8AUdoITx+me4ui 9UXxu5PX+lfq4KmiW3qfTW7zKXed6DxAyfuzROPRc9CdQ3lnjktOS2nE6EipBjUAobzy fjEl+eKv8mp83UfjHorbb3OM1FbwQqKSnNyKfkGZN41U1ZK+27BzoC1/M7FUcy0dkpKQ phzlz8gpAGrdSYJqPeodUzh/duJ3MIUvh9yFv6kTxgWeFvwjpigTJTZEu6vVC1r59yB5 xHLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=cN4v/gGh6PbMAxzdkt7dSj536Ro8INWjbYm2RM+hOPA=; b=F75VAUfjzBSEYFWOww0yA3KSy77IUNKQqTtaruFyFhcgEpaquCthDTMd5h4Qvev+K5 UOlwUnq9NfhPaDfF0cEw5U4Qq7Z5hCJ8kwgs8qbruFr6vrTLaaqVEQG+GI9h2gzHzIr3 4rm4YedzV00lWHXNFUox+aF+zDLa3JoN09AwWj+H+LjZTK4eQte01GXaxkSTaJdia6Wz 8r3uQCBt9dnVYBgO/zmH0dLpnIls7T11DbF+Mepk7m+r5yDqcIEZxni9uTl9O5q3bDGW ZAuX8GMxacahJC/OR/z3gR7QvF82gVQ1FAphIBJRE45tu6Knm251BZAe+YxLQGQZver3 p/kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZV3khQJw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e5-v6si5494037qkg.240.2018.09.11.07.10.41 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 11 Sep 2018 07:10:41 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZV3khQJw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzjNI-00057j-NU for patch@linaro.org; Tue, 11 Sep 2018 10:10:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzjJR-0008Rb-N3 for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzjJN-0007YP-W4 for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:41 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:42879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzjJN-0007XN-Mg for qemu-devel@nongnu.org; Tue, 11 Sep 2018 10:06:37 -0400 Received: by mail-wr1-x42b.google.com with SMTP id v17-v6so26187548wrr.9 for ; Tue, 11 Sep 2018 07:06:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cN4v/gGh6PbMAxzdkt7dSj536Ro8INWjbYm2RM+hOPA=; b=ZV3khQJwjNEHHUg3kXarGjckVXL3Gj4p3T5+niNmwM7PY21+1pe7av3U8cC+K80bXW gUBfIHXipvx3ld3x6369x7MZdS9345x22IuKXnl4qR9ozL3W5LsovR/2Nifx03RiLRbY BCiRM/0rUaZFLvJEwMvjnyw89wxfQ7RNVz+Lc= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=cN4v/gGh6PbMAxzdkt7dSj536Ro8INWjbYm2RM+hOPA=; b=h+mMyNn+pV9Vc1i8/6xE7kP5xXTdfEH07vW0fn/RHPcCnzwd0i3aCKgyjJe18W40CY MvS7aMnM9PdebktKJKcvYM6gPKxNg7GxalP4nt/TTL8+abdeWAOsowhw1qTFm893CLte fqOWDXsTQRR2+Ap/yb8+zMbwfe8e2ZhHqgFJ/Xci8Xte5GtW+CfExF+q+5D411ir0hih dui/tc27saGA9tvipNRFYAL9utqVh6LHQ65jl/FjNY5yUAkF2OnsxFPBj+WW571Udfgk /o5fwgrvGmDwD+fvKTUPTbNj19RxBBZ6JwTLs35YY2gkIBDGvgN+S59I2zy9TEqFvbUt w1uA== X-Gm-Message-State: APzg51Ccw2tkLrybdcAULxa+kTYF07YAFYCuUDkzialohHB7FM/xfRGG UpoVHBPcDGCgBp+GtJ0Z9s3WYISgWtw= X-Received: by 2002:a5d:6b01:: with SMTP id v1-v6mr18815689wrw.208.1536674796050; Tue, 11 Sep 2018 07:06:36 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id h82-v6sm1627021wme.11.2018.09.11.07.06.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Sep 2018 07:06:33 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id AAE063E075D; Tue, 11 Sep 2018 15:06:31 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 11 Sep 2018 15:06:31 +0100 Message-Id: <20180911140631.18481-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180911140631.18481-1-alex.bennee@linaro.org> References: <20180911140631.18481-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b Subject: [Qemu-devel] [RFC PATCH 4/4] tests/tcg: add nios2 architecture (NEEDS FIXES) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 1791796@bugs.launchpad.net, =?utf-8?q?Alex_Benn=C3=A9e?= , thuth@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Now we have a docker image with a nios2 compiler we can add the bits to build our TCG tests. Current failures: testmmap - fails in check_file_fixed_eof_mmaps due to inversion of offset linux-test - unimplemented lseek (probably others as well) Signed-off-by: Alex Bennée --- tests/tcg/nios2/Makefile.include | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/tcg/nios2/Makefile.include -- 2.17.1 diff --git a/tests/tcg/nios2/Makefile.include b/tests/tcg/nios2/Makefile.include new file mode 100644 index 0000000000..2ab4160435 --- /dev/null +++ b/tests/tcg/nios2/Makefile.include @@ -0,0 +1,2 @@ +DOCKER_IMAGE=buildroot-nios2-cross +DOCKER_CROSS_COMPILER=nios2-linux-gcc