drm/msm: remove python 3.9 dependency for compiling msm
authorAbhinav Kumar <quic_abhinavk@quicinc.com>
Tue, 7 May 2024 23:04:40 +0000 (16:04 -0700)
committerThierry Reding <treding@nvidia.com>
Thu, 30 May 2024 16:49:23 +0000 (18:49 +0200)
commitbb195358806847217efba98de62b7decec3b371f
tree9495a764d626daf93490c81e4d4b2ef5cd36edbf
parentb62c150c3bae72ac1910dcc588f360159eb0744a
drm/msm: remove python 3.9 dependency for compiling msm

Since commit 5acf49119630 ("drm/msm: import gen_header.py script from Mesa"),
compilation is broken on machines having python versions older than 3.9
due to dependency on argparse.BooleanOptionalAction.

Switch to use simple bool for the validate flag to remove the dependency.

Fixes: 5acf49119630 ("drm/msm: import gen_header.py script from Mesa")
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Tested-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240507230440.3384949-1-quic_abhinavk@quicinc.com
drivers/gpu/drm/msm/registers/gen_header.py