equal
deleted
inserted
replaced
52 print("This script can be used to set capabilities of all binaries\n"); |
52 print("This script can be used to set capabilities of all binaries\n"); |
53 print("specified for deployment in a .pkg file.\n"); |
53 print("specified for deployment in a .pkg file.\n"); |
54 print("If no capabilities are given, the binaries will be given the\n"); |
54 print("If no capabilities are given, the binaries will be given the\n"); |
55 print("capabilities supported by self-signed certificates.\n\n"); |
55 print("capabilities supported by self-signed certificates.\n\n"); |
56 print(" *** NOTE: If *_template.pkg file is given and one is using symbian-abld or\n"); |
56 print(" *** NOTE: If *_template.pkg file is given and one is using symbian-abld or\n"); |
57 print(" symbian-sbsv2 platform, 'target-platform' is REQUIRED. ***\n"); |
57 print(" symbian-sbsv2 platform, 'target-platform' is REQUIRED. ***\n\n"); |
|
58 print(" *** NOTE2: When patching gcce binaries built with symbian-sbsv2 toolchain,\n"); |
|
59 print(" armv5 must be specified as platform.\n"); |
58 print("\nUsage: patch_capabilities.pl pkg_filename [target-platform [capability list]]\n"); |
60 print("\nUsage: patch_capabilities.pl pkg_filename [target-platform [capability list]]\n"); |
59 print("\nE.g. patch_capabilities.pl myapp_template.pkg release-armv5 \"All -TCB\"\n"); |
61 print("\nE.g. patch_capabilities.pl myapp_template.pkg release-armv5 \"All -TCB\"\n"); |
60 exit(); |
62 exit(); |
61 } |
63 } |
62 |
64 |
102 $platform = $tmpvalues[1]; |
104 $platform = $tmpvalues[1]; |
103 |
105 |
104 # Convert visual target to real target (debug->udeb and release->urel) |
106 # Convert visual target to real target (debug->udeb and release->urel) |
105 $target =~ s/debug/udeb/i; |
107 $target =~ s/debug/udeb/i; |
106 $target =~ s/release/urel/i; |
108 $target =~ s/release/urel/i; |
|
109 |
|
110 if (($platform =~ m/^gcce$/i) && ($ENV{SBS_HOME})) { |
|
111 # Print a informative note in case suspected misuse is detected. |
|
112 print "\nNote: You must use armv5 as platform when packaging gcce binaries built using symbian-sbsv2 mkspec.\n"; |
|
113 } |
107 } |
114 } |
108 |
115 |
109 # If the specified ".pkg" file exists (and can be read), |
116 # If the specified ".pkg" file exists (and can be read), |
110 if (($pkgFileName =~ m|\.pkg$|i) && -r($pkgFileName)) |
117 if (($pkgFileName =~ m|\.pkg$|i) && -r($pkgFileName)) |
111 { |
118 { |