~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/certs/Makefile

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /certs/Makefile (Version linux-6.12-rc7) and /certs/Makefile (Version linux-2.6.0)


  1 # SPDX-License-Identifier: GPL-2.0                
  2 #                                                 
  3 # Makefile for the linux kernel signature chec    
  4 #                                                 
  5                                                   
  6 obj-$(CONFIG_SYSTEM_TRUSTED_KEYRING) += system    
  7 obj-$(CONFIG_SYSTEM_BLACKLIST_KEYRING) += blac    
  8 obj-$(CONFIG_SYSTEM_REVOCATION_LIST) += revoca    
  9                                                   
 10 $(obj)/blacklist_hashes.o: $(obj)/blacklist_ha    
 11 CFLAGS_blacklist_hashes.o := -I $(obj)            
 12                                                   
 13 quiet_cmd_check_and_copy_blacklist_hash_list =    
 14       cmd_check_and_copy_blacklist_hash_list =    
 15         $(if $(CONFIG_SYSTEM_BLACKLIST_HASH_LI    
 16         $(AWK) -f $(src)/check-blacklist-hashe    
 17         { cat $(CONFIG_SYSTEM_BLACKLIST_HASH_L    
 18         echo NULL > $@)                           
 19                                                   
 20 $(obj)/blacklist_hash_list: $(CONFIG_SYSTEM_BL    
 21         $(call if_changed,check_and_copy_black    
 22                                                   
 23 targets += blacklist_hash_list                    
 24                                                   
 25 quiet_cmd_extract_certs  = CERT    $@             
 26       cmd_extract_certs  = $(obj)/extract-cert    
 27 extract-cert-in = $(filter-out $(obj)/extract-    
 28                                                   
 29 $(obj)/system_certificates.o: $(obj)/x509_cert    
 30                                                   
 31 $(obj)/x509_certificate_list: $(CONFIG_SYSTEM_    
 32         $(call if_changed,extract_certs)          
 33                                                   
 34 targets += x509_certificate_list                  
 35                                                   
 36 # If module signing is requested, say by allye    
 37 # supplied, then one will need to be generated    
 38 # fail and that the kernel may be used afterwa    
 39 #                                                 
 40 # We do it this way rather than having a boole    
 41 # external private key, because 'make randconf    
 42 # boolean option and we unfortunately can't ma    
 43 ifeq ($(CONFIG_MODULE_SIG_KEY),certs/signing_k    
 44                                                   
 45 keytype-$(CONFIG_MODULE_SIG_KEY_TYPE_ECDSA) :=    
 46                                                   
 47 quiet_cmd_gen_key = GENKEY  $@                    
 48       cmd_gen_key = openssl req -new -nodes -u    
 49                 -batch -x509 -config $< \         
 50                 -outform PEM -out $@ -keyout $    
 51                                                   
 52 $(obj)/signing_key.pem: $(obj)/x509.genkey FOR    
 53         $(call if_changed,gen_key)                
 54                                                   
 55 targets += signing_key.pem                        
 56                                                   
 57 quiet_cmd_copy_x509_config = COPY    $@           
 58       cmd_copy_x509_config = cat $(src)/defaul    
 59                                                   
 60 # You can provide your own config file. If not    
 61 $(obj)/x509.genkey:                               
 62         $(call cmd,copy_x509_config)              
 63                                                   
 64 endif # CONFIG_MODULE_SIG_KEY                     
 65                                                   
 66 $(obj)/system_certificates.o: $(obj)/signing_k    
 67                                                   
 68 PKCS11_URI := $(filter pkcs11:%, $(CONFIG_MODU    
 69 ifdef PKCS11_URI                                  
 70 $(obj)/signing_key.x509: extract-cert-in := $(    
 71 endif                                             
 72                                                   
 73 $(obj)/signing_key.x509: $(filter-out $(PKCS11    
 74         $(call if_changed,extract_certs)          
 75                                                   
 76 targets += signing_key.x509                       
 77                                                   
 78 $(obj)/revocation_certificates.o: $(obj)/x509_    
 79                                                   
 80 $(obj)/x509_revocation_list: $(CONFIG_SYSTEM_R    
 81         $(call if_changed,extract_certs)          
 82                                                   
 83 targets += x509_revocation_list                   
 84                                                   
 85 hostprogs := extract-cert                         
 86                                                   
 87 HOSTCFLAGS_extract-cert.o = $(shell $(HOSTPKG_    
 88 HOSTLDLIBS_extract-cert = $(shell $(HOSTPKG_CO    
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php