First, apply patches if any.
git am --whitespace=nowarn ${patches}/*.patch
Second, built the module
# take amdgpu as an example
cd drivers/gpu/drm/amd/amdgpu/
make -C /lib/modules/`uname -r`/build M=$PWD
First, apply patches if any.
git am --whitespace=nowarn ${patches}/*.patch
Second, built the module
# take amdgpu as an example
cd drivers/gpu/drm/amd/amdgpu/
make -C /lib/modules/`uname -r`/build M=$PWD