 45c61c6c23
			
		
	
	
		45c61c6c23
		
	
	
	
	
		
			
			The `make efi` target added by 536d2173 is built from the roms/edk2 submodule, which in turn relies on additional submodules nested under roms/edk2. The make-release script currently only pulls in top-level submodules, so these nested submodules are missing in the resulting tarball. We could try to address this situation more generally by recursively pulling in all submodules, but this doesn't necessarily ensure the end-result will build properly (this case also required other changes). Additionally, due to the nature of submodules, we may not always have control over how these sorts of things are dealt with, so for now we continue to handle it on a case-by-case in the make-release script. Cc: Laszlo Ersek <lersek@redhat.com> Cc: Bruce Rogers <brogers@suse.com> Cc: qemu-stable@nongnu.org # v4.1.0 Reported-by: Bruce Rogers <brogers@suse.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Message-Id: <20190912231202.12327-2-mdroth@linux.vnet.ibm.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
		
			
				
	
	
		
			34 lines
		
	
	
		
			995 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			995 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash -e
 | |
| #
 | |
| # QEMU Release Script
 | |
| #
 | |
| # Copyright IBM, Corp. 2012
 | |
| #
 | |
| # Authors:
 | |
| #  Anthony Liguori <aliguori@us.ibm.com>
 | |
| #
 | |
| # This work is licensed under the terms of the GNU GPLv2 or later.
 | |
| # See the COPYING file in the top-level directory.
 | |
| 
 | |
| src="$1"
 | |
| version="$2"
 | |
| destination=qemu-${version}
 | |
| 
 | |
| git clone "${src}" ${destination}
 | |
| pushd ${destination}
 | |
| git checkout "v${version}"
 | |
| git submodule update --init
 | |
| (cd roms/seabios && git describe --tags --long --dirty > .version)
 | |
| (cd roms/skiboot && ./make_version.sh > .version)
 | |
| # Fetch edk2 submodule's submodules, since it won't have access to them via
 | |
| # the tarball later.
 | |
| #
 | |
| # A more uniform way to handle this sort of situation would be nice, but we
 | |
| # don't necessarily have much control over how a submodule handles its
 | |
| # submodule dependencies, so we continue to handle these on a case-by-case
 | |
| # basis for now.
 | |
| (cd roms/edk2 && git submodule update --init)
 | |
| popd
 | |
| tar --exclude=.git -cjf ${destination}.tar.bz2 ${destination}
 | |
| rm -rf ${destination}
 |