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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 9 additions & 4 deletions build.sh
Expand Up @@ -2,6 +2,13 @@

RELEASE=r6p0

BUILD_OPTS="USING_UMP=0
BUILD=release
USING_PROFILING=0
MALI_PLATFORM=sunxi
USING_DVFS=1
USING_DEVFREQ=1"

apply_patches() {
pushd $2

Expand All @@ -16,17 +23,15 @@ apply_patches() {
build_driver() {
local driver_dir=$(pwd)/$RELEASE/src/devicedrv/mali/

USING_UMP=0 BUILD=release USING_PROFILING=0 MALI_PLATFORM=sunxi \
USING_DVFS=1 USING_DEVFREQ=1 make -C $driver_dir
make $BUILD_OPTS -C $driver_dir

cp $driver_dir/mali.ko .
}

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
make $BUILD_OPTS -C $driver_dir install
}

while getopts "r:aubi" opt
Expand Down