Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

build and install with same arguments #6

Closed
wants to merge 1 commit into from
Closed

build and install with same arguments #6

wants to merge 1 commit into from

Conversation

giuliobenetti
Copy link
Contributor

Build and install with same arguments.
This is to prevent to recompile driver twice.

Issueing:
./build.sh -r r6p2 -b
compiles
./build.sh -r r6p2 -i
compiles again, because arguments passed to Makefile are different then previous command

build.sh Outdated
@@ -26,7 +26,7 @@ install_driver() {
local driver_dir=$(pwd)/$RELEASE/src/devicedrv/mali/

USING_UMP=0 BUILD=release USING_PROFILING=0 MALI_PLATFORM=sunxi \
USING_DVFS=0 make -C $driver_dir install
USING_DVFS=1 USING_DEVFREQ=1 make -C $driver_dir install
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can just create a global variable that would avoid that kind of issues in the future.

You should also improve your commit log by saying what is happening now, why, and how you are fixing it.

And please provide a Signed-off-by using the kernel's DCO.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok for global variable.

Ok for Commit log and signed-off

Building and installing build driver twice.

This is because build_driver() and install_driver()
have different make build options.

Add global variable for build options unique for both
build_driver() and install_driver().

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants