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