mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	binman: Add support for building a binmanu PyPi package
Create the necessary files to build this new package. It is not actually clear whether this is useful, since buildman has no purpose outside U-Boot. Move the main program into a function so that it can easily be called by the PyPi-created script. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
							
								
								
									
										1
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								Makefile
									
									
									
									
									
								
							| @@ -2285,6 +2285,7 @@ _pip: | ||||
| 	scripts/make_pip.sh patman ${PIP_ARGS} | ||||
| 	scripts/make_pip.sh buildman ${PIP_ARGS} | ||||
| 	scripts/make_pip.sh dtoc ${PIP_ARGS} | ||||
| 	scripts/make_pip.sh binman ${PIP_ARGS} | ||||
|  | ||||
| help: | ||||
| 	@echo  'Cleaning targets:' | ||||
|   | ||||
							
								
								
									
										29
									
								
								tools/binman/pyproject.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								tools/binman/pyproject.toml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| [build-system] | ||||
| requires = ["setuptools>=61.0"] | ||||
| build-backend = "setuptools.build_meta" | ||||
|  | ||||
| [project] | ||||
| name = "binary-manager" | ||||
| version = "0.0.2" | ||||
| authors = [ | ||||
|   { name="Simon Glass", email="sjg@chromium.org" }, | ||||
| ] | ||||
| dependencies = ["pylibfdt", "u_boot_pylib", "dtoc"] | ||||
| description = "Binman firmware-packaging tool" | ||||
| readme = "README.rst" | ||||
| requires-python = ">=3.7" | ||||
| classifiers = [ | ||||
|     "Programming Language :: Python :: 3", | ||||
|     "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", | ||||
|     "Operating System :: OS Independent", | ||||
| ] | ||||
|  | ||||
| [project.urls] | ||||
| "Homepage" = "https://u-boot.readthedocs.io/en/latest/develop/package/index.html" | ||||
| "Bug Tracker" = "https://source.denx.de/groups/u-boot/-/issues" | ||||
|  | ||||
| [project.scripts] | ||||
| binman = "binman.main:start_binman" | ||||
|  | ||||
| [tool.setuptools.package-data] | ||||
| patman = ["*.rst"] | ||||
		Reference in New Issue
	
	Block a user