refpolicy: add ability to specify policy version
authorAdam Duskett <Aduskett@gmail.com>
Sat, 20 May 2017 20:41:42 +0000 (16:41 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 6 Jun 2017 21:30:08 +0000 (23:30 +0200)
commitd54aa0e861850986d847338c9e6218bffde3d801
tree376461386bac80d2b0d46972add2dd8cb454e1a2
parentbb442abdf18d6a4673ffa1f19e2a62f36c5d3038
refpolicy: add ability to specify policy version

Refpolicy by default will build the highest version supported. This may
cause older kernels to not load the policy.

This patch adds a custom policy version string which is defaulted to 30,
which is the highest supported as of today.

Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
Acked-by: Matt Weber <matthew.weber@rockwellcollins.com>
[Thomas:
 - rename option to BR2_PACKAGE_REFPOLICY_POLICY_VERSION
 - use qstrip to remove double quotes]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/refpolicy/Config.in
package/refpolicy/refpolicy.mk