commit | 50fb252bab92a04d9b33cd2bb708ff14215fa757 | [log] [tgz] |
---|---|---|
author | Joey Armstrong <jarmstrong@linuxfoundation.org> | Mon Aug 26 14:04:46 2024 -0400 |
committer | Joey Armstrong <jarmstrong@linuxfoundation.org> | Mon Aug 26 16:46:49 2024 -0400 |
tree | 2299d8a45d70bb75743956aa9799804ae0924b0b | |
parent | db844cdd8e7e1de6672c5398f7640767182653de [diff] |
[VOL-5358] - build & test repo using new AMI image makefiles/docker/include.mk --------------------------- o get-cmd-docker-protoc-sh() o Initial get-cmd() function required one path -v <mount> or --workdir. o repo:voltha-protos requires multiple docker mounts so add a second get-cmd() function that will accept a list of arguments/mounts. o Makefile can override the definition of PROTOC_SH and GO_SH. o Purge stray comments copied in as a placeholder from a repo Makefile, can add these individually as needed. o [TODO] Consider moving get-cmd() logic into named docker makefiles if more functions are needed. makefiles/virtualenv/requirements-txt.mk ---------------------------------------- o This was cute: user .bashrc, env can bleed through affecting python module config and compiler flag selection. o When installing packages using requirements.txt, sanitize the shell to avoid stray interaction with user defined environment. o In my case compiling would fail while attempting to construct a wheel for packages being installed. Signed-off-by: Joey Armstrong <jarmstrong@linuxfoundation.org> Change-Id: Id1492807a505e54348b95bd553877565b55c57f6
This repository contains common makefile logic and targets that can be used to build arbitrary repositories. Makefile logic is currently being consumed by the VOLTHA project
Two distinct sets of makefiles are needed to support builds:
The first is a subdir of makefiles/ named 'onf-make'
The second makefile directory contains repository/project specific logic:
Most makefile logic can be parameterized and implemented to support reuse. Consider adding enhancements or refactoring local/ makefile logic into repo:onf-make so all makefiles can leverage it.
% tree --charset=ascii -n Makefile config.mk makefiles/ |-- include.mk |-- local | |-- include.mk | | | |-- doc8 | | | | |-- doc8.ini (alas only one --config switch allowed) |-- [onf-make: git-submodule](https://github.com/opencord/onf-make) | |-- makefiles | | |-- consts.mk | | |-- include.mk | | |-- lint | | | |-- doc8 Syntax check ReStructuredText (rst) files | | | |-- groovy | | | |-- python | | | |-- robot.mk Syntax check robot testing framework | | | |-- shell.mk Invoke shellcheck command on scripts | | | |-- yaml Syntax check yaml configs
Ascii art was rendered using
README.md can be rendered locally using