From patchwork Fri Sep 5 21:23:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 261 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757107441; bh=Aoh/JERtS6orrh9n9+ptEXwtKGQcu79NL1LaPWyugaY=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=F/4aVoOj+SNspHfbOe1ZpKfzZmfYJ3FOhzH8CI38etmDAqx827Csdeh7QXjaKuLux bYfHfwF8DhBZIsxfSffWtjuSuucpFVZ5762KAZa0r84EYW4Gs7aA4LA6ROgDPfQ5qF DdMXoeMKP22g3ODcPl673C+/QB8LtKJH+i+VmnDKFALIhRpOPRnFq/ufbFqBrPYcGT L6C/dx8iA9RUoBAADviEDr6FG5Cr7kgen0trNQxUxDHWLKjl39CfrZM/z8J8E2CxoV sRFqlST5muKSowEQRxHmtxI4UB68kb1dQajxZ7KyTuoM46MfoWvj9I0nVSj+oNbLtX HHJTaUpynY5Dw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B57BA679BF for ; Fri, 5 Sep 2025 15:24:01 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id FuNRTpDhsvif for ; Fri, 5 Sep 2025 15:24:01 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757107441; bh=Aoh/JERtS6orrh9n9+ptEXwtKGQcu79NL1LaPWyugaY=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=F/4aVoOj+SNspHfbOe1ZpKfzZmfYJ3FOhzH8CI38etmDAqx827Csdeh7QXjaKuLux bYfHfwF8DhBZIsxfSffWtjuSuucpFVZ5762KAZa0r84EYW4Gs7aA4LA6ROgDPfQ5qF DdMXoeMKP22g3ODcPl673C+/QB8LtKJH+i+VmnDKFALIhRpOPRnFq/ufbFqBrPYcGT L6C/dx8iA9RUoBAADviEDr6FG5Cr7kgen0trNQxUxDHWLKjl39CfrZM/z8J8E2CxoV sRFqlST5muKSowEQRxHmtxI4UB68kb1dQajxZ7KyTuoM46MfoWvj9I0nVSj+oNbLtX HHJTaUpynY5Dw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A18D06794E for ; Fri, 5 Sep 2025 15:24:01 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757107440; bh=hoOxa0AMnMXIfwYg5aaxVjBWLX46vi/3IhYaEkqWSiQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fF48HtMckTZf8/WbEUDpKmIW0qeB2r7nn4jecdf9LcYVHdZVoigamLXPBFsfQ6pYF muzAE6JcNQFm7yqfNTHRM6yvzo8Efv1bzSAL9f2QGi+QgR5KQwNem3GT2B7cEaImBM +OfaOnT8TNMdkUtBW2iIwBIDXkLB9pgOIYhiwVqVQQLYZPZjhA/7tZVgSFQZIxkSDy sqlgNqjt+B9o26uGDsziESnbvFWRh3ssIEmRQhNQkRBLNeOCYoheLOk+TdIAcy4PMC znSuYe3rmjyNAXAI4W7ZbSDsK2rCSJtS71SfI0wOMdZ3uqMKrsnYmO1Us7ZdobGwq1 tziRwbQn8EWWg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 98B1F679B5; Fri, 5 Sep 2025 15:24:00 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id Ub-lQEHlwYif; Fri, 5 Sep 2025 15:24:00 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757107435; bh=cWUYiBLJNz28nhtYVCY+SGzVsLioFs1P8ebGXxb5z+Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S4jqN5FIishHmXRbLlkfrupZnNgZCHy7j/5cgqe0u6qGxqwPDczGz+P56SYwtNgle 7YnXSGs1gmaKNqezbDTBG4Ydg85795iB7MI6A8KNOIV+YPlqkTiqZaqwZUCpKVCJjt Kq3uFmOXdrS96Z3gWSadRGC6oRUftLSWXIfnCTVisvVoS+AenKK0v2Px7Bcx4gLRnx 0azpR5wrL/kY1VedOsUQJpTdg1mxNWmN4rWDGJl/ETf/clAWmJvUu210HA6ztsOlao XXhWfzInxo+VfLuww7bSRu8gZMYZaNqGJFqUS79r3RASwLYIcp9ZWTpHr3s92YNh0Z 0dPTSnqEDY4xw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id AA6086794E; Fri, 5 Sep 2025 15:23:55 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Fri, 5 Sep 2025 15:23:22 -0600 Message-ID: <20250905212330.354827-10-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250905212330.354827-1-sjg@u-boot.org> References: <20250905212330.354827-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 5A44HNG4C3SZFKWSEW5AL4ZMPHNHBJGA X-Message-ID-Hash: 5A44HNG4C3SZFKWSEW5AL4ZMPHNHBJGA X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 09/10] CI: ulib: Test building examples separately List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Check that it is possible to build the ulib examples separately from the U-Boot build. Signed-off-by: Simon Glass --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 59bcd798d6f..e4e86801fdc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -337,6 +337,26 @@ Check packing of Python tools: script: - make pip +Examples: + extends: .test_suites + script: + - git config --global user.name "GitLab CI Runner"; + git config --global user.email trini@konsulko.com; + git config --global --add safe.directory "${CI_PROJECT_DIR}"; + export USER=gitlab; + export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox; + set +e; + ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w + --board sandbox; + set -e; + - echo "Building examples"; + cd examples/ulib; + make UBOOT_BUILD=${UBOOT_TRAVIS_BUILD_DIR} srctree=../.. + - echo "Running static"; + ./demo_static + - echo "Running dynamic"; + LD_LIBRARY_PATH=${UBOOT_TRAVIS_BUILD_DIR} ./demo + # Template for running the 'make check' tools .python_check_template: stage: test.py