diff options
Diffstat (limited to 'classes/fsl-eula-unpack.bbclass')
-rw-r--r-- | classes/fsl-eula-unpack.bbclass | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/classes/fsl-eula-unpack.bbclass b/classes/fsl-eula-unpack.bbclass index 928c992a..a0a7bc5e 100644 --- a/classes/fsl-eula-unpack.bbclass +++ b/classes/fsl-eula-unpack.bbclass | |||
@@ -104,6 +104,28 @@ do_fetch:prepend() { | |||
104 | bb.fatal("The recipe LICENSE should include Proprietary but is " + d.getVar("LICENSE") + ".") | 104 | bb.fatal("The recipe LICENSE should include Proprietary but is " + d.getVar("LICENSE") + ".") |
105 | } | 105 | } |
106 | 106 | ||
107 | do_unpack[vardepsexclude] += "FSL_EULA_FILE" | ||
108 | python do_unpack() { | ||
109 | eula = d.getVar('ACCEPT_FSL_EULA') | ||
110 | eula_file = d.getVar('FSL_EULA_FILE') | ||
111 | pkg = d.getVar('PN') | ||
112 | if eula == None: | ||
113 | bb.fatal("To use '%s' you need to accept the Freescale EULA at '%s'. " | ||
114 | "Please read it and in case you accept it, write: " | ||
115 | "ACCEPT_FSL_EULA = \"1\" in your local.conf." % (pkg, eula_file)) | ||
116 | elif eula == '0': | ||
117 | bb.fatal("To use '%s' you need to accept the Freescale EULA." % pkg) | ||
118 | else: | ||
119 | bb.note("Freescale EULA has been accepted for '%s'" % pkg) | ||
120 | |||
121 | try: | ||
122 | bb.build.exec_func('base_do_unpack', d) | ||
123 | except: | ||
124 | raise | ||
125 | |||
126 | bb.build.exec_func('fsl_bin_do_unpack', d) | ||
127 | } | ||
128 | |||
107 | python fsl_bin_do_unpack() { | 129 | python fsl_bin_do_unpack() { |
108 | src_uri = (d.getVar('SRC_URI') or "").split() | 130 | src_uri = (d.getVar('SRC_URI') or "").split() |
109 | if len(src_uri) == 0: | 131 | if len(src_uri) == 0: |
@@ -160,26 +182,3 @@ python fsl_bin_do_unpack() { | |||
160 | bb.fatal("A valid package EULA with md5sum in %s was not found in LIC_FILES_CHKSUM '%s'." | 182 | bb.fatal("A valid package EULA with md5sum in %s was not found in LIC_FILES_CHKSUM '%s'." |
161 | % (md5sums.split(), licenses)) | 183 | % (md5sums.split(), licenses)) |
162 | } | 184 | } |
163 | |||
164 | python do_unpack() { | ||
165 | eula = d.getVar('ACCEPT_FSL_EULA') | ||
166 | eula_file = d.getVar('FSL_EULA_FILE') | ||
167 | pkg = d.getVar('PN') | ||
168 | if eula == None: | ||
169 | bb.fatal("To use '%s' you need to accept the Freescale EULA at '%s'. " | ||
170 | "Please read it and in case you accept it, write: " | ||
171 | "ACCEPT_FSL_EULA = \"1\" in your local.conf." % (pkg, eula_file)) | ||
172 | elif eula == '0': | ||
173 | bb.fatal("To use '%s' you need to accept the Freescale EULA." % pkg) | ||
174 | else: | ||
175 | bb.note("Freescale EULA has been accepted for '%s'" % pkg) | ||
176 | |||
177 | try: | ||
178 | bb.build.exec_func('base_do_unpack', d) | ||
179 | except: | ||
180 | raise | ||
181 | |||
182 | bb.build.exec_func('fsl_bin_do_unpack', d) | ||
183 | } | ||
184 | |||
185 | do_unpack[vardepsexclude] += "FSL_EULA_FILE" | ||