From c3d35348069bb7a70c41e6389818bbd9a095c5db Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 17 Dec 2024 06:26:16 -0700 Subject: buildman: Add a way to build a particular target At present buildman only supports building the default target. Generally this is what is wanted, but in some cases boards erroneously have a different target for product extra files. Add a --target option to help. Also add a comment indicating which letters are free for new options. Signed-off-by: Simon Glass --- tools/buildman/func_test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tools/buildman/func_test.py') diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index b45eb95a1e6..d70849b47ab 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -1152,3 +1152,13 @@ CONFIG_SOC="fred" 'board': 'ARM Board 0', 'config': 'config0', 'target': 'board0'}, []), res) + + def testTarget(self): + """Test that the --target flag works""" + lines = self.check_command('--target', 'u-boot.dtb')[0] + + # It should not affect the defconfig line + self.assertNotIn(b'u-boot.dtb', lines[0]) + + # It should appear at the end of the build line + self.assertEqual(b'u-boot.dtb', lines[1].split()[-1]) -- cgit v1.2.3