From 70dbfd2513ad1e98a03ef5c34037960cac031d9f Mon Sep 17 00:00:00 2001
From: Wei Gao <gaw1lud@bosch.com>
Date: Wed, 7 Feb 2024 11:19:12 +0100
Subject: [PATCH] Add build profile for QEMU.

---
 debian/changelog | 6 ++++++
 debian/rules     | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 2690a11e..7c398b70 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+arm-trusted-firmware (2.10.0+dfsg-1+apertis3) apertis; urgency=medium
+
+  * Add build profile for QEMU.
+
+ -- Wei Gao <gaw1lud@bosch.com>  Wed, 07 Feb 2024 11:17:14 +0100
+
 arm-trusted-firmware (2.10.0+dfsg-1+apertis2) apertis; urgency=medium
 
   * Refresh the automatically detected licensing information
diff --git a/debian/rules b/debian/rules
index 92945388..17b94ba7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,6 +17,10 @@ endif
 platforms := g12a gxbb sun50i_a64 sun50i_h6 rcar rk3328 rk3399 rpi3 rpi4 imx8mn imx8mm k3
 # Disable building of imx8mq, as it is not well supported upstream.
 #platforms_nodebug := imx8mq
+platforms_nodebug := qemu
+qemu_assigns := QEMU_USE_GIC_DRIVER=QEMU_GICV3 BL32_RAM_LOCATION=tdram LOG_LEVEL=30 SPD=opteed
+qemu_make_target := all
+qemu_targets := bl*.bin
 
 # By default, iMX8MN uses UART2 console. However, other boards supported
 # upstream (e.g. Variscite VAR-SOM-MX8M-NANO board) uses UART4.
-- 
GitLab