]> git.proxmox.com Git - pve-edk2-firmware.git/commitdiff
debian: backport packaging improvements
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Jul 2022 08:15:42 +0000 (10:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Jul 2022 11:46:18 +0000 (13:46 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/binary-check.allow [new file with mode: 0644]
debian/binary-check.blacklist [deleted file]
debian/binary-check.remove [new file with mode: 0644]
debian/binary-check.whitelist [deleted file]
debian/find-binaries.py
debian/remove-binaries.py

diff --git a/debian/binary-check.allow b/debian/binary-check.allow
new file mode 100644 (file)
index 0000000..749a2f8
--- /dev/null
@@ -0,0 +1,112 @@
+.gitmodules
+AppPkg/Applications/Python/Python-2.7.2/Demo/comparisons/patterns
+AppPkg/Applications/Python/Python-2.7.2/Demo/md5test/foo
+AppPkg/Applications/Python/Python-2.7.2/Demo/parser/FILES
+AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/rcsbump
+AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/rcvs
+AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/rrcs
+AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/newslist.doc
+AppPkg/Applications/Python/Python-2.7.2/Grammar/Grammar
+AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/command/command_template
+AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/Setup.sample
+AppPkg/Applications/Python/Python-2.7.2/Lib/email/test/data/audiotest.au
+AppPkg/Applications/Python/Python-2.7.2/Lib/pdb.doc
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/185test.db
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/Sine-1000Hz-300ms.aif
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/audiotest.au
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/check_soundcard.vbs
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/empty.vbs
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/greyrgb.uue
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/randv2_32.pck
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/randv2_64.pck
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/randv3.pck
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/testimg.uue
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/testimgr.uue
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/testrgb.uue
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/testtar.tar
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/xmltestdata/test.xml.out
+AppPkg/Applications/Python/Python-2.7.2/Lib/test/zipdir.zip
+AppPkg/Applications/Python/Python-2.7.2/Lib/wsgiref.egg-info
+AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/make_vms.com
+AppPkg/Applications/Python/Python-2.7.2/Parser/Python.asdl
+AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/ACKS
+AppPkg/Applications/Python/Python-2.7.2/Tools/msi/msisupport.mak
+AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/2to3
+AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/dutree.doc
+AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/idle
+AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/pydoc
+AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/pydocgui.pyw
+AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/python-mappings/CP1140.TXT
+AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/python-mappings/KOI8-U.TXT
+AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/python-mappings/TIS-620.TXT
+AppPkg/Applications/Python/Python-2.7.2/Tools/world/world
+ArmPkg/Library/ArmSoftFloatLib/bits32/softfloat-macros
+ArmPkg/Library/ArmSoftFloatLib/softfloat-specialize
+BaseTools/BinWrappers/PosixLike/BPDG
+BaseTools/BinWrappers/PosixLike/BootSectImage
+BaseTools/BinWrappers/PosixLike/Brotli
+BaseTools/BinWrappers/PosixLike/BrotliCompress
+BaseTools/BinWrappers/PosixLike/DevicePath
+BaseTools/BinWrappers/PosixLike/Ecc
+BaseTools/BinWrappers/PosixLike/EfiLdrImage
+BaseTools/BinWrappers/PosixLike/EfiRom
+BaseTools/BinWrappers/PosixLike/GenerateCapsule
+BaseTools/BinWrappers/PosixLike/GenCrc32
+BaseTools/BinWrappers/PosixLike/GenDepex
+BaseTools/BinWrappers/PosixLike/GenFds
+BaseTools/BinWrappers/PosixLike/GenFfs
+BaseTools/BinWrappers/PosixLike/GenFv
+BaseTools/BinWrappers/PosixLike/GenFw
+BaseTools/BinWrappers/PosixLike/GenPage
+BaseTools/BinWrappers/PosixLike/GenPatchPcdTable
+BaseTools/BinWrappers/PosixLike/GenSec
+BaseTools/BinWrappers/PosixLike/GenVtf
+BaseTools/BinWrappers/PosixLike/GnuGenBootSector
+BaseTools/BinWrappers/PosixLike/LzmaCompress
+BaseTools/BinWrappers/PosixLike/LzmaF86Compress
+BaseTools/BinWrappers/PosixLike/PatchPcdValue
+BaseTools/BinWrappers/PosixLike/Pkcs7Sign
+BaseTools/BinWrappers/PosixLike/Rsa2048Sha256GenerateKeys
+BaseTools/BinWrappers/PosixLike/Rsa2048Sha256Sign
+BaseTools/BinWrappers/PosixLike/Split
+BaseTools/BinWrappers/PosixLike/TargetTool
+BaseTools/BinWrappers/PosixLike/TianoCompress
+BaseTools/BinWrappers/PosixLike/Trim
+BaseTools/BinWrappers/PosixLike/UPT
+BaseTools/BinWrappers/PosixLike/VfrCompile
+BaseTools/BinWrappers/PosixLike/VolInfo
+BaseTools/BinWrappers/PosixLike/build
+BaseTools/BuildEnv
+BaseTools/Conf/XMLSchema/DistributionPackage.xsd
+BaseTools/Scripts/PackageDocumentTools/packagedocapp.pyw
+BaseTools/Source/C/Makefiles/ms.app
+BaseTools/Source/C/Makefiles/ms.common
+BaseTools/Source/C/Makefiles/ms.lib
+BaseTools/Source/C/Makefiles/ms.rule
+BaseTools/Source/C/VfrCompile/Pccts/MPW_Read_Me
+BaseTools/Source/C/VfrCompile/Pccts/NOTES.bcc
+BaseTools/Source/C/VfrCompile/Pccts/NOTES.msvc
+BaseTools/Source/C/VfrCompile/Pccts/RIGHTS
+BaseTools/Source/Python/Ecc/CParser4/C.g4
+BaseTools/Source/Python/Pkcs7Sign/TestRoot.cer
+BaseTools/Source/Python/Rsa2048Sha256Sign/TestSigningPublicKey.bin
+BeagleBoardPkg/ConfigurationHeader.dat
+EmulatorPkg/Unix/.gdbinit
+EmulatorPkg/Unix/GdbRun
+EmulatorPkg/Unix/Host/X11IncludeHack
+EmulatorPkg/Unix/lldbinit
+EmulatorPkg/Win/VS2017/Win.vcxproj
+EmulatorPkg/Win/VS2017/Win.vcxproj.filters
+EmulatorPkg/Win/VS2017/Win.vcxproj.user
+IntelFspWrapperPkg/FspWrapperSecCore/Vtf0/Bin/ResetVec.ia32.raw
+StandaloneMmPkg
+StdLib/Efi/StdLib/etc/host.conf
+StdLib/Efi/StdLib/etc/hosts
+StdLib/Efi/StdLib/etc/networks
+StdLib/Efi/StdLib/etc/protocols
+StdLib/Efi/StdLib/etc/resolv.conf
+StdLib/Efi/StdLib/etc/services
+StdLib/LibC/Softfloat/bits32/softfloat-macros
+StdLib/LibC/Softfloat/bits64/softfloat-macros
+StdLib/LibC/Softfloat/softfloat-specialize
+StdLib/LibC/Softfloat/templates/softfloat-specialize
diff --git a/debian/binary-check.blacklist b/debian/binary-check.blacklist
deleted file mode 100644 (file)
index de1abec..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-ArmPkg/Library/GccLto/liblto-aarch64.a
-ArmPkg/Library/GccLto/liblto-arm.a
-BaseTools/Bin/CYGWIN_NT-5.1-i686/BootSectImage
-BaseTools/Bin/CYGWIN_NT-5.1-i686/BuildEnv
-BaseTools/Bin/CYGWIN_NT-5.1-i686/Ecc
-BaseTools/Bin/CYGWIN_NT-5.1-i686/EfiLdrImage
-BaseTools/Bin/CYGWIN_NT-5.1-i686/EfiRom
-BaseTools/Bin/CYGWIN_NT-5.1-i686/GenCrc32
-BaseTools/Bin/CYGWIN_NT-5.1-i686/GenDepex
-BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFds
-BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFfs
-BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFv
-BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFw
-BaseTools/Bin/CYGWIN_NT-5.1-i686/GenPage
-BaseTools/Bin/CYGWIN_NT-5.1-i686/GenSec
-BaseTools/Bin/CYGWIN_NT-5.1-i686/GenVtf
-BaseTools/Bin/CYGWIN_NT-5.1-i686/GnuGenBootSector
-BaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaCompress
-BaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaF86Compress
-BaseTools/Bin/CYGWIN_NT-5.1-i686/RunBinToolFromBuildDir
-BaseTools/Bin/CYGWIN_NT-5.1-i686/RunToolFromSource
-BaseTools/Bin/CYGWIN_NT-5.1-i686/Split
-BaseTools/Bin/CYGWIN_NT-5.1-i686/TargetTool
-BaseTools/Bin/CYGWIN_NT-5.1-i686/TianoCompress
-BaseTools/Bin/CYGWIN_NT-5.1-i686/Trim
-BaseTools/Bin/CYGWIN_NT-5.1-i686/VfrCompile
-BaseTools/Bin/CYGWIN_NT-5.1-i686/VolInfo
-BaseTools/Bin/CYGWIN_NT-5.1-i686/build
-BaseTools/Bin/Darwin-i386/Arm/DEBUG_XCODE31/CompilerIntrinsicsLib.lib
-BaseTools/Bin/Darwin-i386/Arm/DEBUG_XCODE32/CompilerIntrinsicsLib.lib
-BaseTools/Bin/Darwin-i386/Arm/RELEASE_XCODE31/CompilerIntrinsicsLib.lib
-BaseTools/Bin/Darwin-i386/Arm/RELEASE_XCODE32/CompilerIntrinsicsLib.lib
-BaseTools/Source/Python/Eot/EfiCompressor.pyd
-BaseTools/Source/Python/Eot/LzmaCompressor.pyd
-IntelFsp2Pkg/FspSecCore/Vtf0/Bin/ResetVec.ia32.raw
-UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.ia32.port80.raw
-UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.ia32.raw
-UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.ia32.serial.raw
-UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.x64.port80.raw
-UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.x64.raw
-UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.x64.serial.raw
diff --git a/debian/binary-check.remove b/debian/binary-check.remove
new file mode 100644 (file)
index 0000000..0d6c47f
--- /dev/null
@@ -0,0 +1,44 @@
+ArmPkg/Library/GccLto/liblto-aarch64.a
+ArmPkg/Library/GccLto/liblto-arm.a
+BaseTools/Bin/CYGWIN_NT-5.1-i686/BootSectImage
+BaseTools/Bin/CYGWIN_NT-5.1-i686/BuildEnv
+BaseTools/Bin/CYGWIN_NT-5.1-i686/Ecc
+BaseTools/Bin/CYGWIN_NT-5.1-i686/EfiLdrImage
+BaseTools/Bin/CYGWIN_NT-5.1-i686/EfiRom
+BaseTools/Bin/CYGWIN_NT-5.1-i686/GenCrc32
+BaseTools/Bin/CYGWIN_NT-5.1-i686/GenDepex
+BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFds
+BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFfs
+BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFv
+BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFw
+BaseTools/Bin/CYGWIN_NT-5.1-i686/GenPage
+BaseTools/Bin/CYGWIN_NT-5.1-i686/GenSec
+BaseTools/Bin/CYGWIN_NT-5.1-i686/GenVtf
+BaseTools/Bin/CYGWIN_NT-5.1-i686/GnuGenBootSector
+BaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaCompress
+BaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaF86Compress
+BaseTools/Bin/CYGWIN_NT-5.1-i686/RunBinToolFromBuildDir
+BaseTools/Bin/CYGWIN_NT-5.1-i686/RunToolFromSource
+BaseTools/Bin/CYGWIN_NT-5.1-i686/Split
+BaseTools/Bin/CYGWIN_NT-5.1-i686/TargetTool
+BaseTools/Bin/CYGWIN_NT-5.1-i686/TianoCompress
+BaseTools/Bin/CYGWIN_NT-5.1-i686/Trim
+BaseTools/Bin/CYGWIN_NT-5.1-i686/VfrCompile
+BaseTools/Bin/CYGWIN_NT-5.1-i686/VolInfo
+BaseTools/Bin/CYGWIN_NT-5.1-i686/build
+BaseTools/Bin/Darwin-i386/Arm/DEBUG_XCODE31/CompilerIntrinsicsLib.lib
+BaseTools/Bin/Darwin-i386/Arm/DEBUG_XCODE32/CompilerIntrinsicsLib.lib
+BaseTools/Bin/Darwin-i386/Arm/RELEASE_XCODE31/CompilerIntrinsicsLib.lib
+BaseTools/Bin/Darwin-i386/Arm/RELEASE_XCODE32/CompilerIntrinsicsLib.lib
+BaseTools/Source/Python/Eot/EfiCompressor.pyd
+BaseTools/Source/Python/Eot/LzmaCompressor.pyd
+IntelFsp2Pkg/FspSecCore/Vtf0/Bin/ResetVec.ia32.raw
+UefiCpuPkg/ResetVector/Vtf0/Bin/IA32/ResetVector.ia32.port80.raw
+UefiCpuPkg/ResetVector/Vtf0/Bin/IA32/ResetVector.ia32.serial.raw
+UefiCpuPkg/ResetVector/Vtf0/Bin/IA32/ResetVector.ia32.raw
+UefiCpuPkg/ResetVector/Vtf0/Bin/X64/PageTable2M/ResetVector.x64.port80.raw
+UefiCpuPkg/ResetVector/Vtf0/Bin/X64/PageTable2M/ResetVector.x64.serial.raw
+UefiCpuPkg/ResetVector/Vtf0/Bin/X64/PageTable2M/ResetVector.x64.raw
+UefiCpuPkg/ResetVector/Vtf0/Bin/X64/PageTable1G/ResetVector.x64.port80.raw
+UefiCpuPkg/ResetVector/Vtf0/Bin/X64/PageTable1G/ResetVector.x64.serial.raw
+UefiCpuPkg/ResetVector/Vtf0/Bin/X64/PageTable1G/ResetVector.x64.raw
diff --git a/debian/binary-check.whitelist b/debian/binary-check.whitelist
deleted file mode 100644 (file)
index 749a2f8..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-.gitmodules
-AppPkg/Applications/Python/Python-2.7.2/Demo/comparisons/patterns
-AppPkg/Applications/Python/Python-2.7.2/Demo/md5test/foo
-AppPkg/Applications/Python/Python-2.7.2/Demo/parser/FILES
-AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/rcsbump
-AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/rcvs
-AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/rrcs
-AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/newslist.doc
-AppPkg/Applications/Python/Python-2.7.2/Grammar/Grammar
-AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/command/command_template
-AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/Setup.sample
-AppPkg/Applications/Python/Python-2.7.2/Lib/email/test/data/audiotest.au
-AppPkg/Applications/Python/Python-2.7.2/Lib/pdb.doc
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/185test.db
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/Sine-1000Hz-300ms.aif
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/audiotest.au
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/check_soundcard.vbs
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/empty.vbs
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/greyrgb.uue
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/randv2_32.pck
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/randv2_64.pck
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/randv3.pck
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/testimg.uue
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/testimgr.uue
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/testrgb.uue
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/testtar.tar
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/xmltestdata/test.xml.out
-AppPkg/Applications/Python/Python-2.7.2/Lib/test/zipdir.zip
-AppPkg/Applications/Python/Python-2.7.2/Lib/wsgiref.egg-info
-AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/make_vms.com
-AppPkg/Applications/Python/Python-2.7.2/Parser/Python.asdl
-AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/ACKS
-AppPkg/Applications/Python/Python-2.7.2/Tools/msi/msisupport.mak
-AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/2to3
-AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/dutree.doc
-AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/idle
-AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/pydoc
-AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/pydocgui.pyw
-AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/python-mappings/CP1140.TXT
-AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/python-mappings/KOI8-U.TXT
-AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/python-mappings/TIS-620.TXT
-AppPkg/Applications/Python/Python-2.7.2/Tools/world/world
-ArmPkg/Library/ArmSoftFloatLib/bits32/softfloat-macros
-ArmPkg/Library/ArmSoftFloatLib/softfloat-specialize
-BaseTools/BinWrappers/PosixLike/BPDG
-BaseTools/BinWrappers/PosixLike/BootSectImage
-BaseTools/BinWrappers/PosixLike/Brotli
-BaseTools/BinWrappers/PosixLike/BrotliCompress
-BaseTools/BinWrappers/PosixLike/DevicePath
-BaseTools/BinWrappers/PosixLike/Ecc
-BaseTools/BinWrappers/PosixLike/EfiLdrImage
-BaseTools/BinWrappers/PosixLike/EfiRom
-BaseTools/BinWrappers/PosixLike/GenerateCapsule
-BaseTools/BinWrappers/PosixLike/GenCrc32
-BaseTools/BinWrappers/PosixLike/GenDepex
-BaseTools/BinWrappers/PosixLike/GenFds
-BaseTools/BinWrappers/PosixLike/GenFfs
-BaseTools/BinWrappers/PosixLike/GenFv
-BaseTools/BinWrappers/PosixLike/GenFw
-BaseTools/BinWrappers/PosixLike/GenPage
-BaseTools/BinWrappers/PosixLike/GenPatchPcdTable
-BaseTools/BinWrappers/PosixLike/GenSec
-BaseTools/BinWrappers/PosixLike/GenVtf
-BaseTools/BinWrappers/PosixLike/GnuGenBootSector
-BaseTools/BinWrappers/PosixLike/LzmaCompress
-BaseTools/BinWrappers/PosixLike/LzmaF86Compress
-BaseTools/BinWrappers/PosixLike/PatchPcdValue
-BaseTools/BinWrappers/PosixLike/Pkcs7Sign
-BaseTools/BinWrappers/PosixLike/Rsa2048Sha256GenerateKeys
-BaseTools/BinWrappers/PosixLike/Rsa2048Sha256Sign
-BaseTools/BinWrappers/PosixLike/Split
-BaseTools/BinWrappers/PosixLike/TargetTool
-BaseTools/BinWrappers/PosixLike/TianoCompress
-BaseTools/BinWrappers/PosixLike/Trim
-BaseTools/BinWrappers/PosixLike/UPT
-BaseTools/BinWrappers/PosixLike/VfrCompile
-BaseTools/BinWrappers/PosixLike/VolInfo
-BaseTools/BinWrappers/PosixLike/build
-BaseTools/BuildEnv
-BaseTools/Conf/XMLSchema/DistributionPackage.xsd
-BaseTools/Scripts/PackageDocumentTools/packagedocapp.pyw
-BaseTools/Source/C/Makefiles/ms.app
-BaseTools/Source/C/Makefiles/ms.common
-BaseTools/Source/C/Makefiles/ms.lib
-BaseTools/Source/C/Makefiles/ms.rule
-BaseTools/Source/C/VfrCompile/Pccts/MPW_Read_Me
-BaseTools/Source/C/VfrCompile/Pccts/NOTES.bcc
-BaseTools/Source/C/VfrCompile/Pccts/NOTES.msvc
-BaseTools/Source/C/VfrCompile/Pccts/RIGHTS
-BaseTools/Source/Python/Ecc/CParser4/C.g4
-BaseTools/Source/Python/Pkcs7Sign/TestRoot.cer
-BaseTools/Source/Python/Rsa2048Sha256Sign/TestSigningPublicKey.bin
-BeagleBoardPkg/ConfigurationHeader.dat
-EmulatorPkg/Unix/.gdbinit
-EmulatorPkg/Unix/GdbRun
-EmulatorPkg/Unix/Host/X11IncludeHack
-EmulatorPkg/Unix/lldbinit
-EmulatorPkg/Win/VS2017/Win.vcxproj
-EmulatorPkg/Win/VS2017/Win.vcxproj.filters
-EmulatorPkg/Win/VS2017/Win.vcxproj.user
-IntelFspWrapperPkg/FspWrapperSecCore/Vtf0/Bin/ResetVec.ia32.raw
-StandaloneMmPkg
-StdLib/Efi/StdLib/etc/host.conf
-StdLib/Efi/StdLib/etc/hosts
-StdLib/Efi/StdLib/etc/networks
-StdLib/Efi/StdLib/etc/protocols
-StdLib/Efi/StdLib/etc/resolv.conf
-StdLib/Efi/StdLib/etc/services
-StdLib/LibC/Softfloat/bits32/softfloat-macros
-StdLib/LibC/Softfloat/bits64/softfloat-macros
-StdLib/LibC/Softfloat/softfloat-specialize
-StdLib/LibC/Softfloat/templates/softfloat-specialize
index b5063823b62fdc68859d18504427c7386a310fb4..b3f3ddecf8e214dfb06b597be4b737dcb2b689cc 100644 (file)
@@ -2,17 +2,18 @@
 
 # Use heuristics to identify new files that maybe binaries.
 # Flagged files need to be manually inspected and either added to the
-# whitelist (because they are safe to redistribute), or to the blacklist
+# allow list (because they are safe to redistribute), or to the reject list
 # (so that they'll be removed prior to orig.tar.xz generation).
 
 import os
 import re
 import sys
 
+
 def nameOK(name):
-    OKPatterns = ['\.gitignore', 'AUTHORS', 'FILE.LST', 'Change[lL]og',
-                  'COPYING', 'configure', 'FAQ', '(GNU)?[Mm]akefile',
-                  'INDEX', 'LICENSE', 'README', 'TODO' ]
+    OKPatterns = [r'\.gitignore', r'AUTHORS', r'FILE.LST', r'Change[lL]og',
+                  r'COPYING', r'configure', r'FAQ', r'(GNU)?[Mm]akefile',
+                  r'INDEX', r'LICENSE', r'README', r'TODO']
     OKRegexs = map(re.compile, OKPatterns)
 
     for r in OKRegexs:
@@ -20,40 +21,44 @@ def nameOK(name):
             return True
     return False
 
+
 def extensionOK(name):
-    OKExtensions = [ '1', '3', 'ASL', 'asi', 'asl', 'aslc', 'Asm', 'asm',
-                     'asm16', 'bat', 'bmp', 'c', 'CMM', 'cmm', 'cnf', 'cpp',
-                     'css', 'dec', 'decTest', 'dlg', 'dsc', 'docx', 'dsp',
-                     'dsw', 'el', 'env', 'fdf', 'g', 'gif', 'H', 'h', 'hpp',
-                     'html', 'i', 'idf', 'in', 'inc', 'inf', 'info', 'ini',
-                     'lds', 'log', 'lua', 'mak', 'makefile', 'md', 'nasm',
-                     'nasmb', 'nsh', 'patch', 'pbxuser', 'pbxproj', 'pdf',
-                     'pem', 'pl', 'png', 'pod', 'ps', 'py', 'r', 'rtf', 'S',
-                     's', 'sct', 'sh', 'sln', 't', 'template', 'txt', 'uni',
-                     'Vfr', 'vcproj', 'vfi', 'vfr', 'xml' ]
+    OKExtensions = ['1', '3', 'ASL', 'asi', 'asl', 'aslc', 'Asm', 'asm',
+                    'asm16', 'bat', 'bmp', 'c', 'CMM', 'cmm', 'cnf', 'cpp',
+                    'css', 'dec', 'decTest', 'dlg', 'dsc', 'docx', 'dsp',
+                    'dsw', 'el', 'env', 'fdf', 'g', 'gif', 'H', 'h', 'hpp',
+                    'html', 'i', 'idf', 'in', 'inc', 'inf', 'info', 'ini',
+                    'lds', 'log', 'lua', 'mak', 'makefile', 'md', 'nasm',
+                    'nasmb', 'nsh', 'patch', 'pbxuser', 'pbxproj', 'pdf',
+                    'pem', 'pl', 'png', 'pod', 'ps', 'py', 'r', 'rtf', 'S',
+                    's', 'sct', 'sh', 'sln', 't', 'template', 'txt', 'uni',
+                    'Vfr', 'vcproj', 'vfi', 'vfr', 'xml']
     ext = name.split('.')[-1]
 
     if ext in OKExtensions:
         return True
     return False
 
+
 if __name__ == '__main__':
     top = './'
     for root, dirs, files in os.walk(top):
-        with open('./debian/binary-check.whitelist', 'r') as f:
-            whitelist = list(map(lambda s: s.strip(), f.readlines()))
+        with open('./debian/binary-check.allow', 'r') as f:
+            allowlist = list(map(lambda s: s.strip(), f.readlines()))
 
         ret = 0
         for name in files:
             relpath = os.path.join(root, name)[len(top):]
-            if relpath in whitelist:
+            if relpath in allowlist:
                 continue
             if nameOK(name):
                 continue
             if extensionOK(name):
                 continue
             else:
-                sys.stdout.write("WARNING: Possible binary %s\n" % (os.path.join(root, name)))
+                sys.stdout.write(
+                    "WARNING: Possible binary %s\n" %
+                    (os.path.join(root, name))
+                )
                 ret = -1
     sys.exit(ret)
-
index 6a5c966310763f9fde69451c43b709c387cded97..d3298f1d121d03c5b0c2b7de4297c7d14f20549c 100644 (file)
@@ -4,9 +4,9 @@ import os
 import sys
 
 if __name__ == '__main__':
-    with open('./debian/binary-check.blacklist', 'r') as f:
-        blacklist = list(map(lambda s: s.strip(), f.readlines()))
+    with open('./debian/binary-check.remove', 'r') as f:
+        removelist = list(map(lambda s: s.strip(), f.readlines()))
 
-    for path in blacklist:
+    for path in removelist:
         sys.stdout.write("Removing %s\n" % (path))
         os.unlink(path)