Skip to contentSkip to conversation

tests/docker: Install tools to cross-debug and build Linux kernels

PATCH In review Philippe Mathieu-Daudé 3 participants 5 messages Feb 12, 2020 – Mar 6, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/docker: Install tools to cross-debug and build Linux kernels

From: Philippe Mathieu-Daudé <[email protected]>

We often run Linux kernels to test QEMU. We sometimes need to build them manually to use non-default features. We only miss the tiny 'bc' tool.

The ncurses library is helpful to run 'make menuconfig'.

Finally, gdb-multiarch allow us to debug a TCG guest when its architecture is different than the host.

---
 tests/docker/dockerfiles/debian10.docker | 3 +++
 tests/docker/dockerfiles/debian9.docker  | 3 +++
 2 files changed, 6 insertions(+)
tests/docker/dockerfiles/debian10.docker +3 -0
index 5de79ae552..2fcdc406e8 100644
@@ -17,14 +17,17 @@ RUN apt update && \
     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
     DEBIAN_FRONTEND=noninteractive eatmydata \
     apt install -y --no-install-recommends \
+        bc \
         bison \
         build-essential \
         ca-certificates \
         clang \
         dbus \
         flex \
+        gdb-multiarch \
         gettext \
         git \
+        libncurses5-dev \
         pkg-config \
         psmisc \
         python3 \
tests/docker/dockerfiles/debian9.docker +3 -0
index 8cbd742bb5..92edbbf0f4 100644
@@ -17,13 +17,16 @@ RUN apt update && \
     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
     DEBIAN_FRONTEND=noninteractive eatmydata \
     apt install -y --no-install-recommends \
+        bc \
         bison \
         build-essential \
         ca-certificates \
         clang \
         flex \
+        gdb-multiarch \
         gettext \
         git \
+        libncurses5-dev \
         pkg-config \
         psmisc \
         python3 \
Signature · 1 line
2.21.1
#1 lore raw
Quoted 51 lines · Philippe Mathieu-Daudé

From: Philippe Mathieu-Daudé <[email protected]>

We often run Linux kernels to test QEMU. We sometimes need to build them manually to use non-default features. We only miss the tiny 'bc' tool.

The ncurses library is helpful to run 'make menuconfig'.

Finally, gdb-multiarch allow us to debug a TCG guest when its architecture is different than the host.

---
  tests/docker/dockerfiles/debian10.docker | 3 +++
  tests/docker/dockerfiles/debian9.docker  | 3 +++
  2 files changed, 6 insertions(+)
tests/docker/dockerfiles/debian10.docker +3 -0
index 5de79ae552..2fcdc406e8 100644
@@ -17,14 +17,17 @@ RUN apt update && \
      DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
      DEBIAN_FRONTEND=noninteractive eatmydata \
      apt install -y --no-install-recommends \
+        bc \
          bison \
          build-essential \
          ca-certificates \
          clang \
          dbus \
          flex \
+        gdb-multiarch \
          gettext \
          git \
+        libncurses5-dev \
          pkg-config \
          psmisc \
          python3 \
tests/docker/dockerfiles/debian9.docker +1 -0
index 8cbd742bb5..92edbbf0f4 100644
@@ -17,13 +17,16 @@ RUN apt update && \
      DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
      DEBIAN_FRONTEND=noninteractive eatmydata \
      apt install -y --no-install-recommends \
+        bc \
          bison \
          build-essential \

tests/docker/dockerfiles/debian9.docker RUN apt update && \ · line 32

Quoted 10 lines
tests/docker/dockerfiles/debian9.docker +2 -0
          ca-certificates \
          clang \
          flex \
+        gdb-multiarch \
          gettext \
          git \
+        libncurses5-dev \
          pkg-config \
          psmisc \
          python3 \

ping?

#2 lore raw

ping ping?

Quoted 64 lines · Philippe Mathieu-Daudé
Quoted 51 lines · Philippe Mathieu-Daudé

From: Philippe Mathieu-Daudé <[email protected]>

We often run Linux kernels to test QEMU. We sometimes need to build them manually to use non-default features. We only miss the tiny 'bc' tool.

The ncurses library is helpful to run 'make menuconfig'.

Finally, gdb-multiarch allow us to debug a TCG guest when its architecture is different than the host.

---
  tests/docker/dockerfiles/debian10.docker | 3 +++ tests/docker/dockerfiles/debian9.docker  | 3 +++

  2 files changed, 6 insertions(+)
tests/docker/dockerfiles/debian10.docker +3 -0
index 5de79ae552..2fcdc406e8 100644
@@ -17,14 +17,17 @@ RUN apt update && \
       DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
       DEBIAN_FRONTEND=noninteractive eatmydata \
       apt install -y --no-install-recommends \
+        bc \
           bison \
           build-essential \
           ca-certificates \
           clang \
           dbus \
           flex \
+        gdb-multiarch \
           gettext \
           git \
+        libncurses5-dev \
           pkg-config \
           psmisc \
           python3 \
tests/docker/dockerfiles/debian9.docker +1 -0
index 8cbd742bb5..92edbbf0f4 100644
@@ -17,13 +17,16 @@ RUN apt update && \
       DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
       DEBIAN_FRONTEND=noninteractive eatmydata \
       apt install -y --no-install-recommends \
+        bc \
           bison \
           build-essential \

tests/docker/dockerfiles/debian9.docker RUN apt update && \ · line 32

Quoted 10 lines
tests/docker/dockerfiles/debian9.docker +2 -0
           ca-certificates \
           clang \
           flex \
+        gdb-multiarch \
           gettext \
           git \
+        libncurses5-dev \
           pkg-config \
           psmisc \
           python3 \

ping?

Reviewed-by on v1 1/1
#4 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 8 lines · Philippe Mathieu-Daudé

From: Philippe Mathieu-Daudé <[email protected]>

We often run Linux kernels to test QEMU. We sometimes need to build them manually to use non-default features. We only miss the tiny 'bc' tool.

The ncurses library is helpful to run 'make menuconfig'.

Quoted 8 lines

Finally, gdb-multiarch allow us to debug a TCG guest when its architecture is different than the host.

---
 tests/docker/dockerfiles/debian10.docker | 3 +++
 tests/docker/dockerfiles/debian9.docker  | 3 +++
 2 files changed, 6 insertions(+)

Make sense to add these packages:

Thanks,
Stefano

Quoted 48 lines
tests/docker/dockerfiles/debian10.docker +3 -0
index 5de79ae552..2fcdc406e8 100644
@@ -17,14 +17,17 @@ RUN apt update && \
     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
     DEBIAN_FRONTEND=noninteractive eatmydata \
     apt install -y --no-install-recommends \
+        bc \
         bison \
         build-essential \
         ca-certificates \
         clang \
         dbus \
         flex \
+        gdb-multiarch \
         gettext \
         git \
+        libncurses5-dev \
         pkg-config \
         psmisc \
         python3 \
tests/docker/dockerfiles/debian9.docker +3 -0
index 8cbd742bb5..92edbbf0f4 100644
@@ -17,13 +17,16 @@ RUN apt update && \
     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
     DEBIAN_FRONTEND=noninteractive eatmydata \
     apt install -y --no-install-recommends \
+        bc \
         bison \
         build-essential \
         ca-certificates \
         clang \
         flex \
+        gdb-multiarch \
         gettext \
         git \
+        libncurses5-dev \
         pkg-config \
         psmisc \
         python3 \
Signature · 1 line
2.21.1
#3 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 1 line · Philippe Mathieu-Daudé

ping ping?

Queued to testing/next, thanks. Sorry for the delay.

Quoted 67 lines · Philippe Mathieu-Daudé
Quoted 65 lines · Philippe Mathieu-Daudé
Quoted 53 lines

From: Philippe Mathieu-Daudé <[email protected]>

We often run Linux kernels to test QEMU. We sometimes need to build them manually to use non-default features. We only miss the tiny 'bc' tool.

The ncurses library is helpful to run 'make menuconfig'.

Finally, gdb-multiarch allow us to debug a TCG guest when its architecture is different than the host.

---
  tests/docker/dockerfiles/debian10.docker | 3 +++
  tests/docker/dockerfiles/debian9.docker  | 3 +++
  2 files changed, 6 insertions(+)
tests/docker/dockerfiles/debian10.docker +3 -0
index 5de79ae552..2fcdc406e8 100644
@@ -17,14 +17,17 @@ RUN apt update && \
      DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
      DEBIAN_FRONTEND=noninteractive eatmydata \
      apt install -y --no-install-recommends \
+        bc \
          bison \
          build-essential \
          ca-certificates \
          clang \
          dbus \
          flex \
+        gdb-multiarch \
          gettext \
          git \
+        libncurses5-dev \
          pkg-config \
          psmisc \
          python3 \
tests/docker/dockerfiles/debian9.docker +1 -0
index 8cbd742bb5..92edbbf0f4 100644
@@ -17,13 +17,16 @@ RUN apt update && \
      DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
      DEBIAN_FRONTEND=noninteractive eatmydata \
      apt install -y --no-install-recommends \
+        bc \
          bison \
          build-essential \

tests/docker/dockerfiles/debian9.docker RUN apt update && \ · line 32

Quoted 10 lines
tests/docker/dockerfiles/debian9.docker +2 -0
          ca-certificates \
          clang \
          flex \
+        gdb-multiarch \
          gettext \
          git \
+        libncurses5-dev \
          pkg-config \
          psmisc \
          python3 \

ping?

Signature · 1 line
Alex Bennée