]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commit
make.sh: Remove crda and remaining python2 modules
authorAdolf Belka <adolf.belka@ipfire.org>
Thu, 5 Aug 2021 21:01:45 +0000 (23:01 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 10 Sep 2021 07:24:16 +0000 (07:24 +0000)
commit0c547778958fa575b078e9afb3c0a66cbcb8bc71
tree533fa6f3388c376a19f2b6f8c6e9846ec1de892a
parent55cb5e9324dbec88cac9581930aaee4e3a598a9b
make.sh: Remove crda and remaining python2 modules

- crda only works with python2 version of m2crypto
   python-m2crypto requires python-setuptools and python-typing
- With Linux kernel 4.15 and later the country code status check that crda did is built
   into the kernel.
- So from kernel 4.15, crda can be removed, which allows removal of m2crypto, setuptools
   and typing.
- python-typing is built into python3 so no additional python3 module required.
- python3 version of python-setuptools has already been installed.
- python3 version of python-m2crypto is not required. python-m2crypto is only used for the
   build of crda.
- ipaddr can be removed as the function of this python2 module is built into python3 with
   ipaddress.py
- removal of crda tested with 5.10.45 kernel and the setting of a country code was
   recognised. If this test carried out with crda removed and 4.14.232 kernel then country
   code stays defined as the global code "00".
- wlanap.cgi uses regdbdump from crda to create a text based list of the
   wireless settings by country database. With the removal of crda a modification is
   required to wireless-reg to copy the db.txt file to a specific location that wlan.cgi
   can then access. db.txt is the text file version of the wireless settings by country
   database.
- This series version copies the db.txt file and renames it regulatorydb.txt and places it in
   /lib/firmware/
- This series version also corrects the loading command from regulatorydb.txt into the
   @countrylist_cmd variable

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
make.sh