Closed Miouyouyou closed 2 years ago
The new patches introduce BREAKING CHANGES. If you could test the whole thing before merging, this would help.
Also note that I won't be there until the start of September. I'll push the documentation of the new architecture today. But I won't have any script ready for the packaging.
In order to package the modules correctly, a package-manager specific directory architecture has been put in place.
I'll write the documentation by the end of the day.
Still, the whole idea to have something like that, inside the module directory :
DEPS
: Global installation dependenciesDEPS.build
: Dependencies only required to build the actual module projectBUILD.sh
: The script run at the module root directory to build the whole module.POSTINST.sh
: Global Post-installation scriptall-archs/
cli/
DEPS
: Cli specific dependenciesmodule/
: Module files copied on the harddrive...gui/
POSTINST.sh
: GUI specific Post-installation scriptDEPS
: GUI specific dependenciesmodule/
: Module files copied on the harddrive...armv7/
: ARMv7 specific modulesaarch64
: ARMv8 64 bits specific modulesaarch64.rockchip
: ARMv8 64 bits specific modules for RockchipThe packager only needs to install :
armbian/DESC*
to/usr/share/armbian/configurator/modules/${module_name}
armbian/${most_specific_architecture}/cli/module
to/usr/share/armbian/configurator/modules/${module_name}/cli
armbian/${most_specific_architecture}/tui/module
to/usr/share/armbian/configurator/modules/${module_name}/tui
armbian/${most_specific_architecture}/gui/module
to/usr/share/armbian/configurator/modules/${module_name}/gui
The packaging script is not ready at the moment, though...
Notes :
First, note that the architectures directories are not required per-se. You can go with only "all-archs". Only create an "armv7" directory if it makes sense for you to have a Armv7 specific module. This is generally the case if the module needs to be built for a specific architecture.
Second, while the files (DEPS, POSTINST.sh, ...) are concatenated, each architecture is independent, and the packaging script WILL NOT OVERLAY ARCHITECTURES DIRECTORIES. Meaning that identical module files need to copied over and over, in each individual architecture directory.
Signed-off-by: Myy Miouyouyou myy@miouyouyou.fr