origen 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/application.rb +21 -28
- data/config/development.rb +6 -0
- data/config/version.rb +1 -1
- data/lib/origen/commands.rb +1 -1
- data/lib/origen/commands/fetch.rb +11 -7
- data/lib/origen/file_handler.rb +10 -3
- data/lib/origen/generator/pattern.rb +2 -2
- data/lib/origen/pins/pin.rb +19 -0
- data/lib/origen/revision_control/design_sync.rb +26 -4
- data/lib/origen/revision_control/git.rb +2 -0
- data/lib/origen/ruby_version_check.rb +6 -116
- data/lib/origen/specs.rb +14 -17
- data/lib/origen/specs/exhibit.rb +4 -1
- data/lib/origen/tester/vector_generator.rb +4 -0
- data/templates/nanoc/layouts/bootstrap.html.erb +2 -1
- data/templates/test/set2/template_with_no_erb_2.txt +2 -2
- metadata +17 -15
- data/templates/shared/web/_logo.html +0 -10
- data/templates/web/archive.md.erb +0 -11
- data/templates/web/contact.md.erb +0 -40
- data/templates/web/docs/environment/definitions.md.erb +0 -17
- data/templates/web/docs/environment/installation.md.erb +0 -22
- data/templates/web/docs/environment/introduction.md.erb +0 -5
- data/templates/web/index.md.erb +0 -12
- data/templates/web/layouts/_basic.html.erb +0 -13
- data/templates/web/layouts/_doc.html.erb +0 -32
- data/templates/web/partials/_navbar.html.erb +0 -24
- data/templates/web/references.md.erb +0 -39
- data/templates/web/release_notes.md.erb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a17f83218dfbdb04b529a5409b3788894397dd01
|
4
|
+
data.tar.gz: d401f2d8d025e8369d7d0d997fb4591003d82a6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de390f4a7de892ecacca11e97f290ad3066e6efca9d2f07095597f38d6f7ae691de35c1e815e5baecfaada7d89250cd9fbc8913157d6c60c649773af2d7ba63e
|
7
|
+
data.tar.gz: 4731125fd3ef2842959b016e562f3b328d05172bb32373b2e195f82e065f199022859d4e9ee1b160ec4c138424a7b8bcf0bfb8f7b6f5a3bd093b3ded05952f33
|
data/config/application.rb
CHANGED
@@ -102,39 +102,32 @@ class OrigenCoreApplication < Origen::Application
|
|
102
102
|
|
103
103
|
# Ensure that all tests pass before allowing a release to continue
|
104
104
|
def validate_release
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
105
|
+
if !system("origen specs") || !system("origen examples")
|
106
|
+
puts "Sorry but you can't release with failing tests, please fix them and try again."
|
107
|
+
exit 1
|
108
|
+
else
|
109
|
+
puts "All tests passing, proceeding with release process!"
|
110
|
+
end
|
111
111
|
end
|
112
112
|
|
113
113
|
def before_deploy_site
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
114
|
+
Dir.chdir Origen.root do
|
115
|
+
system "origen specs -c"
|
116
|
+
system "origen examples -c"
|
117
|
+
dir = "#{Origen.root}/web/output/coverage"
|
118
|
+
FileUtils.remove_dir(dir, true) if File.exists?(dir)
|
119
|
+
system "mv #{Origen.root}/coverage #{dir}"
|
120
|
+
end
|
121
121
|
end
|
122
122
|
|
123
123
|
def after_release_email(tag, note, type, selector, options)
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
# Dir.chdir Origen.root do
|
133
|
-
# system command
|
134
|
-
# end
|
135
|
-
# end
|
136
|
-
#rescue
|
137
|
-
# Origen.log.error "Web deploy failed"
|
138
|
-
#end
|
124
|
+
begin
|
125
|
+
command = "origen web compile --remote --api"
|
126
|
+
Dir.chdir Origen.root do
|
127
|
+
system command
|
128
|
+
end
|
129
|
+
rescue
|
130
|
+
Origen.log.error "Web deploy failed"
|
131
|
+
end
|
139
132
|
end
|
140
133
|
end
|
data/config/development.rb
CHANGED
@@ -5,3 +5,9 @@ require "c99/doc_interface"
|
|
5
5
|
# this is to test that the importing application can override and
|
6
6
|
# extend imported classes.
|
7
7
|
require "#{Origen.root}/lib/c99/nvm"
|
8
|
+
|
9
|
+
# Dummy definition to allow Origen tests to run until the Testers plugin is available
|
10
|
+
module Testers
|
11
|
+
class J750
|
12
|
+
end
|
13
|
+
end
|
data/config/version.rb
CHANGED
data/lib/origen/commands.rb
CHANGED
@@ -173,7 +173,7 @@ end
|
|
173
173
|
|
174
174
|
case @command
|
175
175
|
when 'generate', 'program', 'compile', 'merge', 'interactive', 'target', 'environment',
|
176
|
-
'ctags', 'save', 'lsf', 'web', 'time', 'dispatch', 'rc', 'lint', 'plugin' # , 'add'
|
176
|
+
'ctags', 'save', 'lsf', 'web', 'time', 'dispatch', 'rc', 'lint', 'plugin', 'fetch' # , 'add'
|
177
177
|
|
178
178
|
require "origen/commands/#{@command}"
|
179
179
|
exit 0 unless @command == 'interactive'
|
@@ -11,15 +11,19 @@ By default this will always create the workspace at './[PLUGIN_NAME]'
|
|
11
11
|
|
12
12
|
Usage: origen fetch [PLUGIN_NAME] [options]
|
13
13
|
END
|
14
|
-
opts.on('-o', '--outputdir', 'User defined destination directory of the plugin workspace') {
|
14
|
+
opts.on('-o', '--outputdir PATH', 'User defined destination directory of the plugin workspace') { |o| options[:outputdir] = o }
|
15
|
+
opts.on('-v', '--version VERSION', 'User requested plugin/gem version') { |v| options[:version] = v }
|
15
16
|
opts.on('-h', '--help', 'Show this message') { puts opts; exit }
|
16
|
-
end
|
17
|
-
|
18
|
-
options
|
17
|
+
end.parse!
|
18
|
+
|
19
|
+
puts options
|
19
20
|
|
20
|
-
#
|
21
|
+
# Plugin name is always the first argument.
|
21
22
|
plugin_name = ARGV[0]
|
22
|
-
|
23
|
+
|
24
|
+
# Extract options passed to OptionParser
|
25
|
+
dir = options[:outputdir]
|
26
|
+
version = options[:version]
|
23
27
|
|
24
28
|
# Set valid_name to false by default
|
25
29
|
valid_name = false
|
@@ -60,4 +64,4 @@ end
|
|
60
64
|
|
61
65
|
# Set up the requested plugin workspace
|
62
66
|
rc = Origen::RevisionControl.new remote: rc_url, local: dir
|
63
|
-
rc.build
|
67
|
+
rc.build version: version
|
data/lib/origen/file_handler.rb
CHANGED
@@ -240,9 +240,16 @@ module Origen
|
|
240
240
|
path = path.to_s unless path.is_a?(String)
|
241
241
|
if path =~ /(.*?)\/.*/
|
242
242
|
import_name = Regexp.last_match[1].downcase.to_sym
|
243
|
-
if import_name == :origen || import_name == :origen_core || Origen.import_manager.names.include?(import_name)
|
244
|
-
|
245
|
-
|
243
|
+
if import_name == :origen || import_name == :origen_core || Origen.import_manager.names.include?(import_name) ||
|
244
|
+
import_name == :doc_helpers
|
245
|
+
# Special case to allow a shortcut for this common import plugin and to also handle legacy
|
246
|
+
# code from when it was called doc_helpers instead of origen_doc_helpers
|
247
|
+
if import_name == :doc_helpers
|
248
|
+
root = Origen.app(:origen_doc_helpers).root
|
249
|
+
else
|
250
|
+
unless import_name == :origen || import_name == :origen_core
|
251
|
+
root = Origen.app(import_name).root
|
252
|
+
end
|
246
253
|
end
|
247
254
|
if options[:type] == :template
|
248
255
|
if import_name == :origen || import_name == :origen_core
|
@@ -224,11 +224,11 @@ module Origen
|
|
224
224
|
c2 '*' * 75
|
225
225
|
c2 'ENVIRONMENT:'
|
226
226
|
c2 ' Application'
|
227
|
-
c2 "
|
227
|
+
c2 " Source: #{Origen.config.rc_url}"
|
228
228
|
c2 " Version: #{Origen.app.version}"
|
229
229
|
c2 " Workspace: #{Origen.root}"
|
230
230
|
c2 ' Origen'
|
231
|
-
c2
|
231
|
+
c2 ' Source: https://github.com/Origen-SDK/origen'
|
232
232
|
c2 " Version: #{Origen.version}"
|
233
233
|
c2 " Workspace: #{Origen.top}"
|
234
234
|
c2 '*' * 75
|
data/lib/origen/pins/pin.rb
CHANGED
@@ -668,6 +668,19 @@ module Origen
|
|
668
668
|
alias_method :compare!, :assert!
|
669
669
|
alias_method :expect!, :assert!
|
670
670
|
|
671
|
+
def assert_midband
|
672
|
+
set_state(:compare_midband)
|
673
|
+
end
|
674
|
+
alias_method :compare_midband, :assert_midband
|
675
|
+
alias_method :expect_midband, :assert_midband
|
676
|
+
|
677
|
+
def assert_midband!
|
678
|
+
assert_midband
|
679
|
+
cycle
|
680
|
+
end
|
681
|
+
alias_method :compare_midband!, :assert_midband!
|
682
|
+
alias_method :expect_midband!, :assert_midband!
|
683
|
+
|
671
684
|
# Returns the state of invert
|
672
685
|
def inverted?
|
673
686
|
@invert
|
@@ -685,6 +698,12 @@ module Origen
|
|
685
698
|
state == :expect_mem
|
686
699
|
end
|
687
700
|
|
701
|
+
# Returns true if the pin is currently in a compare state
|
702
|
+
def comparing_midband?
|
703
|
+
!@suspend &&
|
704
|
+
state == :compare_midband
|
705
|
+
end
|
706
|
+
|
688
707
|
# Returns true if the pin is currently in a drive state
|
689
708
|
def driving?
|
690
709
|
!@suspend &&
|
@@ -45,8 +45,8 @@ module Origen
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
def build
|
49
|
-
checkout
|
48
|
+
def build(options = {})
|
49
|
+
checkout(options)
|
50
50
|
end
|
51
51
|
|
52
52
|
def checkout(path = nil, options = {})
|
@@ -191,16 +191,38 @@ module Origen
|
|
191
191
|
# cache the result for future calls
|
192
192
|
Origen.app.session.dssc["root-#{local}"] ||= begin
|
193
193
|
root = local
|
194
|
+
# Create two arrays, one to store the parents and the other to corresponding vaults.
|
195
|
+
temp_parent_array = Array.new(0)
|
196
|
+
temp_parent_vault_array = Array.new(0)
|
194
197
|
resolved = false
|
195
198
|
vault = dssc("url vault #{root}").first
|
196
199
|
until resolved || root.root?
|
197
200
|
parent = root.parent
|
201
|
+
# push the current parent into the parent array
|
202
|
+
temp_parent_array.push(parent.to_s)
|
198
203
|
if File.exist?("#{parent}/.SYNC")
|
199
204
|
parent_vault = dssc("url vault #{parent}").first
|
200
|
-
|
205
|
+
# push the current parent_vault into the vault array.
|
206
|
+
temp_parent_vault_array.push(parent_vault.to_s)
|
207
|
+
if vault.to_s =~ /^#{parent_vault}/ && vault.to_s != parent_vault.to_s
|
201
208
|
root = parent
|
202
209
|
else
|
203
|
-
|
210
|
+
# Now, check if the parent array has unique values, it should if the DesignSync directory structure is correct.
|
211
|
+
if temp_parent_vault_array.uniq.length == temp_parent_vault_array.length
|
212
|
+
resolved = true
|
213
|
+
else
|
214
|
+
# To display the file/directory that the user needs to correct the conflict in, pick up the second last element from the parent array.
|
215
|
+
fault_dir = temp_parent_array[-2]
|
216
|
+
fault_dir_name = fault_dir.split('/')[-1]
|
217
|
+
Origen.log.error 'DesignSync returns same vault locations for two directories.'
|
218
|
+
Origen.log.error 'Please resolve the workspace conflicts before continuing'
|
219
|
+
# Un-cache the result so that there is no error in future calls.
|
220
|
+
Origen.app.session.dssc["root-#{local}"] = nil
|
221
|
+
# Remove the .ref symlink from the local directory so that there are no issues in the future call
|
222
|
+
scratch = Pathname.new("#{local}/.ref")
|
223
|
+
FileUtils.rm_rf(scratch) if scratch.exist?
|
224
|
+
abort
|
225
|
+
end
|
204
226
|
end
|
205
227
|
else
|
206
228
|
resolved = true
|
@@ -26,6 +26,7 @@ module Origen
|
|
26
26
|
|
27
27
|
if options[:force]
|
28
28
|
git 'reset HEAD'
|
29
|
+
git 'pull', options
|
29
30
|
git "checkout #{version} #{paths.join(' ')}", options
|
30
31
|
else
|
31
32
|
if paths.size > 1 || paths.first != local.to_s
|
@@ -34,6 +35,7 @@ module Origen
|
|
34
35
|
git 'reset HEAD'
|
35
36
|
res = git 'stash', options
|
36
37
|
stashed = !res.any? { |l| l =~ /^No local changes to save/ }
|
38
|
+
git 'pull', options
|
37
39
|
git "checkout #{version}", options
|
38
40
|
if stashed
|
39
41
|
result = git 'stash pop', { check_errors: false }.merge(options)
|
@@ -1,131 +1,21 @@
|
|
1
1
|
require 'pathname'
|
2
2
|
|
3
|
-
def origen_top
|
4
|
-
# This is set in bin/origen
|
5
|
-
$origen_launch_root
|
6
|
-
end
|
7
|
-
|
8
3
|
def ruby_acceptable_to_run?
|
9
|
-
|
10
|
-
RUBY_VERSION >= '1.9.3'
|
11
|
-
else
|
12
|
-
ruby_latest?
|
13
|
-
end
|
4
|
+
RUBY_VERSION >= min_ruby_version
|
14
5
|
end
|
15
6
|
|
16
|
-
def
|
17
|
-
# For now assume windows is always a valid installation
|
7
|
+
def min_ruby_version
|
18
8
|
if RUBY_PLATFORM == 'i386-mingw32'
|
19
|
-
|
9
|
+
'1.9.3'
|
20
10
|
else
|
21
|
-
|
22
|
-
# RUBY_VERSION == '1.9.3' && RUBY_PATCHLEVEL && RUBY_PATCHLEVEL == 327
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
def puts_latest_policy_files
|
27
|
-
puts <<-END
|
28
|
-
Please contact your system administrator to have the latest versions of the following packages
|
29
|
-
installed (when they are available you can import them by running the commands above):
|
30
|
-
|
31
|
-
END
|
32
|
-
File.readlines("#{origen_top}/config/origen.policy").each do |line|
|
33
|
-
if line !~ /^#/
|
34
|
-
puts " #{line}"
|
35
|
-
end
|
11
|
+
'2.0.0'
|
36
12
|
end
|
37
|
-
puts ''
|
38
13
|
end
|
39
14
|
|
40
|
-
|
15
|
+
unless ruby_acceptable_to_run?
|
41
16
|
puts <<-END
|
42
|
-
It's possible that your Ruby version may be stale or out of date, please run the following commands:
|
43
|
-
|
44
|
-
cd #{origen_top}
|
45
|
-
source source_setup update
|
46
|
-
cd #{FileUtils.pwd}
|
47
|
-
|
48
|
-
If you see this message again after performing the above steps then it may be that your site
|
49
|
-
does not have the most recent version of the Ruby package installed.
|
50
|
-
Please contact your system administrator to have the latest version of this package
|
51
|
-
installed (when it is available you can re-run the commands above):
|
52
|
-
|
53
|
-
END
|
54
|
-
File.readlines("#{origen_top}/config/origen.policy").each do |line|
|
55
|
-
if line !~ /^#/ && line =~ /ruby/
|
56
|
-
puts " #{line}"
|
57
|
-
end
|
58
|
-
end
|
59
|
-
puts ''
|
60
|
-
end
|
61
|
-
|
62
|
-
def _running_from_tr?
|
63
|
-
if RUBY_PLATFORM != 'i386-mingw32'
|
64
|
-
!!(`echo $PATH` =~ /fs-origen-/)
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
unless ruby_latest?
|
69
|
-
if ruby_acceptable_to_run?
|
70
|
-
puts <<-END
|
71
17
|
|
72
|
-
|
73
|
-
|
74
|
-
Your site may already have access to the new tools and you can test this by running the
|
75
|
-
following commands which may be sufficient to remove this message:
|
76
|
-
|
77
|
-
cd #{origen_top}
|
78
|
-
source source_setup update
|
79
|
-
cd #{FileUtils.pwd}
|
80
|
-
|
81
|
-
If that doesn't work then the most likely problem is that your site does not have the required
|
82
|
-
packages installed and you should get some feedback to this effect when running source_setup.
|
18
|
+
You are currently running Ruby version #{RUBY_VERSION}, however Origen needs version #{min_ruby_version}.
|
83
19
|
|
84
20
|
END
|
85
|
-
puts_latest_policy_files
|
86
|
-
|
87
|
-
else
|
88
|
-
|
89
|
-
if _running_from_tr?
|
90
|
-
puts <<-END
|
91
|
-
I can see that you have added the Origen bin directory to your path, however the required Ruby
|
92
|
-
executable is being overridden by another version that has higher precedence in your path.
|
93
|
-
|
94
|
-
To fix this you should move the Origen bin directory higher up your path, e.g. add this at the very
|
95
|
-
end of your setup file to place it at the head of your path:
|
96
|
-
|
97
|
-
setenv PATH ./lbin:/run/pkg/fs-origen-/latest/bin:$PATH
|
98
|
-
|
99
|
-
For now you can resolve the problem in this shell by running:
|
100
|
-
|
101
|
-
source /run/pkg/fs-origen-/latest/origen_setup
|
102
|
-
|
103
|
-
END
|
104
|
-
exit 1
|
105
|
-
else
|
106
|
-
|
107
|
-
puts <<-END
|
108
|
-
|
109
|
-
Sorry but your Ruby installation is too old to guarantee that Origen will run properly.
|
110
|
-
|
111
|
-
It's possible that you haven't installed Origen correctly, please ensure that you have followed
|
112
|
-
the instructions here:
|
113
|
-
|
114
|
-
http://freeshare.freescale.net:2222/public/origen-cmty-svc/Lists/Posts/Post.aspx?ID=8
|
115
|
-
|
116
|
-
If that doesn't help then perhaps your local copy of the tool collection is stale and
|
117
|
-
running the following commands may help:
|
118
|
-
|
119
|
-
cd #{origen_top}
|
120
|
-
source source_setup update
|
121
|
-
cd #{FileUtils.pwd}
|
122
|
-
|
123
|
-
If that doesn't work then the most likely problem is that your site does not have the required
|
124
|
-
packages installed and you should get some feedback to this effect when running source_setup.
|
125
|
-
|
126
|
-
END
|
127
|
-
puts_latest_policy_files
|
128
|
-
exit 1
|
129
|
-
end
|
130
|
-
end
|
131
21
|
end
|
data/lib/origen/specs.rb
CHANGED
@@ -117,7 +117,7 @@ module Origen
|
|
117
117
|
|
118
118
|
def exhibit(id, type, options = {})
|
119
119
|
_exhibits
|
120
|
-
@_exhibits[id][type] = Exhibit.new(id, type, options)
|
120
|
+
@_exhibits[options[:block_id]][id][type] = Exhibit.new(id, type, options)
|
121
121
|
end
|
122
122
|
|
123
123
|
def doc_resource(selector = {}, table_title = {}, text = {}, options = {})
|
@@ -186,24 +186,19 @@ module Origen
|
|
186
186
|
|
187
187
|
def exhibits(options = {})
|
188
188
|
options = {
|
189
|
-
|
190
|
-
|
189
|
+
block: nil,
|
190
|
+
id: nil,
|
191
|
+
type: nil,
|
192
|
+
exhibits_to_be_shown: []
|
191
193
|
}.update(options)
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
194
|
+
exhibits_to_be_shown = options[:exhibits_to_be_shown]
|
195
|
+
filter_hash(_exhibits, options[:block]).each do |_exhibit, hash|
|
196
|
+
filter_hash(hash, options[:id]).each do |id, hash_|
|
197
|
+
filter_hash(hash_, options[:type]).each do |type, hash__|
|
198
|
+
exhibits_to_be_shown << hash__
|
199
|
+
end
|
198
200
|
end
|
199
201
|
end
|
200
|
-
if exhibits_found.empty?
|
201
|
-
return nil
|
202
|
-
elsif exhibits_found.size == 1
|
203
|
-
return exhibits_found.values.first.values.first
|
204
|
-
else
|
205
|
-
return exhibits_found
|
206
|
-
end
|
207
202
|
end
|
208
203
|
|
209
204
|
def doc_resources(options = {})
|
@@ -362,7 +357,9 @@ module Origen
|
|
362
357
|
|
363
358
|
def _exhibits
|
364
359
|
@_exhibits ||= Hash.new do |h, k|
|
365
|
-
h[k] =
|
360
|
+
h[k] = Hash.new do |hh, kk|
|
361
|
+
hh[kk] = {}
|
362
|
+
end
|
366
363
|
end
|
367
364
|
end
|
368
365
|
|
data/lib/origen/specs/exhibit.rb
CHANGED
@@ -2,7 +2,7 @@ module Origen
|
|
2
2
|
module Specs
|
3
3
|
# This class is used to store spec exhibit information used to document IP
|
4
4
|
class Exhibit
|
5
|
-
attr_accessor :id, :type, :title, :description, :reference, :markup
|
5
|
+
attr_accessor :id, :type, :title, :description, :reference, :markup, :include_exhibit, :block_id
|
6
6
|
|
7
7
|
def initialize(id, type, options = {})
|
8
8
|
@id = id
|
@@ -11,6 +11,9 @@ module Origen
|
|
11
11
|
@description = options[:description]
|
12
12
|
@reference = options[:reference]
|
13
13
|
@markup = options[:markup]
|
14
|
+
@include_exhibit = true
|
15
|
+
@include_exhibit = options[:include_exhibit] unless options[:include_exhibit].nil?
|
16
|
+
@block_id = options[:block_id]
|
14
17
|
end
|
15
18
|
end
|
16
19
|
end
|
@@ -586,6 +586,8 @@ module Origen
|
|
586
586
|
pin.expect_hi
|
587
587
|
elsif state == @expect_lo_state || state == 'L'
|
588
588
|
pin.expect_lo
|
589
|
+
elsif state == @expect_mid_state || state == 'M'
|
590
|
+
pin.expect_mid
|
589
591
|
elsif state == @drive_mem_state || state == 'D'
|
590
592
|
pin.drive_mem
|
591
593
|
elsif state == @expect_mem_state || state == 'E'
|
@@ -612,6 +614,8 @@ module Origen
|
|
612
614
|
else
|
613
615
|
@drive_lo_state || '0'
|
614
616
|
end
|
617
|
+
elsif pin.comparing_midband?
|
618
|
+
@expect_mid_state || 'M'
|
615
619
|
elsif pin.comparing?
|
616
620
|
if pin.value == 1
|
617
621
|
@expect_hi_state || 'H'
|
@@ -19,6 +19,8 @@
|
|
19
19
|
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
|
20
20
|
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
|
21
21
|
<link rel="stylesheet" href="http://origen-sdk.org/css/bootstrap_custom.css"></script>
|
22
|
+
<!-- Load this up top to allow pages to execute JQuery snippets -->
|
23
|
+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
22
24
|
|
23
25
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
24
26
|
<!--[if lt IE 9]>
|
@@ -51,7 +53,6 @@
|
|
51
53
|
<!-- Bootstrap core JavaScript
|
52
54
|
================================================== -->
|
53
55
|
<!-- Placed at the end of the document so the pages load faster -->
|
54
|
-
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
55
56
|
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
|
56
57
|
<script src="http://origen-sdk.org/js/lunr.min.js"></script>
|
57
58
|
<script src="http://origen-sdk.org/js/highlight.js"></script>
|
@@ -2,8 +2,8 @@ This is a template without a
|
|
2
2
|
.erb extension.
|
3
3
|
|
4
4
|
It should only compile if
|
5
|
-
|
5
|
+
Origen.config.compile_only_dot_erb_files == false
|
6
6
|
|
7
7
|
% 10.times do
|
8
|
-
|
8
|
+
Origen.config.compile_only_dot_erb_files is <%= Origen.config.compile_only_dot_erb_files %>
|
9
9
|
% end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: origen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -352,6 +352,20 @@ dependencies:
|
|
352
352
|
- - '='
|
353
353
|
- !ruby/object:Gem::Version
|
354
354
|
version: 0.1.0
|
355
|
+
- !ruby/object:Gem::Dependency
|
356
|
+
name: origen_doc_helpers
|
357
|
+
requirement: !ruby/object:Gem::Requirement
|
358
|
+
requirements:
|
359
|
+
- - ">="
|
360
|
+
- !ruby/object:Gem::Version
|
361
|
+
version: 0.1.0
|
362
|
+
type: :development
|
363
|
+
prerelease: false
|
364
|
+
version_requirements: !ruby/object:Gem::Requirement
|
365
|
+
requirements:
|
366
|
+
- - ">="
|
367
|
+
- !ruby/object:Gem::Version
|
368
|
+
version: 0.1.0
|
355
369
|
- !ruby/object:Gem::Dependency
|
356
370
|
name: loco
|
357
371
|
requirement: !ruby/object:Gem::Requirement
|
@@ -689,7 +703,6 @@ files:
|
|
689
703
|
- templates/nanoc/lib/helpers.rb
|
690
704
|
- templates/nanoc/lib/search_filter.rb
|
691
705
|
- templates/nanoc_dynamic/content/search.js.erb
|
692
|
-
- templates/shared/web/_logo.html
|
693
706
|
- templates/test/_inline_sub.txt.erb
|
694
707
|
- templates/test/environment.txt.erb
|
695
708
|
- templates/test/inline.txt.erb
|
@@ -707,17 +720,6 @@ files:
|
|
707
720
|
- templates/test/set3/content.html.erb
|
708
721
|
- templates/time/filter.rb.erb
|
709
722
|
- templates/time/rules.rb.erb
|
710
|
-
- templates/web/archive.md.erb
|
711
|
-
- templates/web/contact.md.erb
|
712
|
-
- templates/web/docs/environment/definitions.md.erb
|
713
|
-
- templates/web/docs/environment/installation.md.erb
|
714
|
-
- templates/web/docs/environment/introduction.md.erb
|
715
|
-
- templates/web/index.md.erb
|
716
|
-
- templates/web/layouts/_basic.html.erb
|
717
|
-
- templates/web/layouts/_doc.html.erb
|
718
|
-
- templates/web/partials/_navbar.html.erb
|
719
|
-
- templates/web/references.md.erb
|
720
|
-
- templates/web/release_notes.md.erb
|
721
723
|
homepage: http://origen-sdk.org
|
722
724
|
licenses:
|
723
725
|
- LGPL-3
|
@@ -738,7 +740,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
738
740
|
version: 1.8.11
|
739
741
|
requirements: []
|
740
742
|
rubyforge_project:
|
741
|
-
rubygems_version: 2.
|
743
|
+
rubygems_version: 2.4.8
|
742
744
|
signing_key:
|
743
745
|
specification_version: 4
|
744
746
|
summary: A Semiconductor Developer's Kit
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<div class="pull-right logo-rgen" style="margin-top: 18px; margin-left: 10px">
|
2
|
-
<a href="http://origen-sdk.org" style="text-decoration: none; color: #e66a08; font-weight: bold; font-size: 20px;">
|
3
|
-
<span>Origen</span>
|
4
|
-
</a>
|
5
|
-
</div>
|
6
|
-
<div class="pull-right">
|
7
|
-
<a href="http://origen-sdk.org">
|
8
|
-
<img src="http://rgen.freescale.net/img/fsl_logo.png" style="height:40px">
|
9
|
-
</a>
|
10
|
-
</div>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
% render "layouts/basic.html", tab: :archive do
|
2
|
-
|
3
|
-
## Archive
|
4
|
-
|
5
|
-
Documentation from previous releases is available via the links below:
|
6
|
-
|
7
|
-
% Origen.app.versions.reverse_each do |version|
|
8
|
-
* [<%= version %>](<%= Origen.app.config.web_domain %>/<%= version.gsub(".", "_") %>)
|
9
|
-
% end
|
10
|
-
|
11
|
-
% end
|
@@ -1,40 +0,0 @@
|
|
1
|
-
% render "layouts/basic.html", tab: :contact do
|
2
|
-
|
3
|
-
## Contact Us
|
4
|
-
|
5
|
-
The following engineers can be contacted about this application:
|
6
|
-
|
7
|
-
% Origen.app.developers.each do |user|
|
8
|
-
% if user.email
|
9
|
-
* [<%= user.name %>](mailto:<%= user.email %>)
|
10
|
-
% else
|
11
|
-
* <%= user.name %>
|
12
|
-
% end
|
13
|
-
% end
|
14
|
-
|
15
|
-
%# An example of how to manually write a more detailed contact page:
|
16
|
-
%#Please use PDM For any bug reports or change/feature requests:
|
17
|
-
%#
|
18
|
-
%#* [C90TFS_NVM_tester on PDM](http://designpdm.freescale.net/Agile/PLMServlet?fromPCClient=true&module=PartFamilyHandler&requestUrl=module%3DPartFamilyHandler%26opcode%3DdisplayObject%26classid%3D2000004409%26objid%3D17718323%26tabid%3D2%26)
|
19
|
-
%#
|
20
|
-
%#For test related issues you can contact:
|
21
|
-
%#
|
22
|
-
%#* [Stephen McGinty](http://freeshare.freescale.net:2222/my/Person.aspx?accountname=fsl\r49409)
|
23
|
-
%#* [Thao Huynh](http://freeshare.freescale.net:2222/my/Person.aspx?accountname=fsl\R6AANF)
|
24
|
-
%#
|
25
|
-
%#For product/yield issues contact:
|
26
|
-
%#
|
27
|
-
%#* [Andrew Hardell](http://freeshare.freescale.net:2222/my/Person.aspx?accountname=fsl\R12635)
|
28
|
-
%#* [Eddie Lepore](http://freeshare.freescale.net:2222/my/Person.aspx?accountname=fsl\B06626)
|
29
|
-
%#
|
30
|
-
%#The manager of this project is:
|
31
|
-
%#
|
32
|
-
%#* [Wendy Malloch](http://freeshare.freescale.net:2222/my/Person.aspx?accountname=fsl\TTZ231)
|
33
|
-
%#
|
34
|
-
%#
|
35
|
-
%#Finally if you are not sure who to contact, or if your question may have device/reliability
|
36
|
-
%#implications, then you can use the Split Gate Flash Test and Reliability mailing list:
|
37
|
-
%#
|
38
|
-
%#* [Email SGFTANDR](mailto:SGFTANDR@freescale.com)
|
39
|
-
|
40
|
-
% end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
% render "../../layouts/doc.html" do
|
2
|
-
|
3
|
-
%# Add any new entries anywhere in this list, it will get sorted into
|
4
|
-
%# alphabetical order during compilation:
|
5
|
-
%
|
6
|
-
% terms = {
|
7
|
-
% "Origen" => "A general purpose semiconductor engineering framework that uses the Ruby programming language, read more at http://origen.freescale.net",
|
8
|
-
% "Application" => "The generic name given to a project that uses Origen",
|
9
|
-
% }
|
10
|
-
|
11
|
-
| Term or Acronym | Definition
|
12
|
-
|:----------------|:----------
|
13
|
-
% terms.sort.each do |term|
|
14
|
-
| <%= term[0] %> | <%= term[1] %>
|
15
|
-
% end
|
16
|
-
|
17
|
-
% end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
% render "../../layouts/doc.html" do
|
2
|
-
|
3
|
-
Follow the steps below to setup a new environment.
|
4
|
-
|
5
|
-
#### 1. Install Origen
|
6
|
-
|
7
|
-
Follow these instructions to install Origen: [How to Install Origen](http://origen.freescale.net/origen/latest/guides/starting/installing)
|
8
|
-
|
9
|
-
#### 2. Create the application workspace
|
10
|
-
|
11
|
-
This workspace must be situated outside of the Origen workspace that you have just created.
|
12
|
-
|
13
|
-
Execute the following commands:
|
14
|
-
|
15
|
-
~~~
|
16
|
-
mkdir <%= Origen.app.name %>
|
17
|
-
cd <%= Origen.app.name %>
|
18
|
-
dssc setvault <%= Origen.config.vault %> .
|
19
|
-
dssc pop -rec -uni -get -force -ver <%= Origen.app.version %> .
|
20
|
-
~~~
|
21
|
-
|
22
|
-
% end
|
data/templates/web/index.md.erb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
% render "layouts/basic.html" do
|
2
|
-
|
3
|
-
%# HTML tags can be embedded in mark down files if you want to do specific custom
|
4
|
-
%# formatting like this, but in most cases that is not required.
|
5
|
-
<h1><%= Origen.app.namespace %> <span style="font-size: 14px">(<%= Origen.app.version %>)</span></h1>
|
6
|
-
|
7
|
-
### Introduction
|
8
|
-
|
9
|
-
Use this page to give a brief overview of what your application does, put the detail
|
10
|
-
in the docs section.
|
11
|
-
|
12
|
-
% end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: <%= options[:title] || Origen.app.namespace %>
|
3
|
-
---
|
4
|
-
<%= render "templates/web/partials/navbar.html", tab: options[:tab] %>
|
5
|
-
|
6
|
-
<div class="row">
|
7
|
-
%# The markdown attribute is important if you are going to include content written
|
8
|
-
%# in markdown, without this is will be included verbatim
|
9
|
-
<div class="span12" markdown="1">
|
10
|
-
<%= yield %>
|
11
|
-
|
12
|
-
</div>
|
13
|
-
</div>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: <%= options[:title] || "#{Origen.app.namespace} - Docs" %>
|
3
|
-
---
|
4
|
-
<%= render "templates/web/partials/navbar.html", tab: :docs %>
|
5
|
-
% s = {}
|
6
|
-
|
7
|
-
%# This creates the index on the left of your doc pages
|
8
|
-
%#
|
9
|
-
%# Naming of the keys is very important and must be of the form:
|
10
|
-
%# <section>_<page> with no other underscores
|
11
|
-
%# Origen will then look for the corresponding page in:
|
12
|
-
%# templates/web/docs/<section>/<page>.md.erb
|
13
|
-
%#
|
14
|
-
%# See here for more info: http://origen.freescale.net/doc_helpers/latest/examples/searchable/intro/
|
15
|
-
|
16
|
-
% s["Environment"] = {
|
17
|
-
% environment_introduction: "Introduction",
|
18
|
-
% environment_installation: "Installation",
|
19
|
-
% environment_definitions: "Definitions and Acronyms",
|
20
|
-
% }
|
21
|
-
%
|
22
|
-
%# Define additional sections as required, e.g.
|
23
|
-
%# s["Registers"] = {
|
24
|
-
%# registers_map: "Register Map",
|
25
|
-
%# }
|
26
|
-
|
27
|
-
|
28
|
-
% #render "doc_helpers/searchable.html", options.merge(:index => s) do
|
29
|
-
|
30
|
-
<%= yield %>
|
31
|
-
|
32
|
-
% #end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<nav class="navbar navbar-inverse navbar-fixed-top">
|
2
|
-
<div class="container">
|
3
|
-
<div class="navbar-header">
|
4
|
-
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
5
|
-
<span class="sr-only">Toggle navigation</span>
|
6
|
-
<span class="icon-bar"></span>
|
7
|
-
<span class="icon-bar"></span>
|
8
|
-
<span class="icon-bar"></span>
|
9
|
-
</button>
|
10
|
-
<a class="navbar-brand" href="<%= path "/" %>">Home</a>
|
11
|
-
</div>
|
12
|
-
<div id="navbar" class="collapse navbar-collapse">
|
13
|
-
<ul class="nav navbar-nav">
|
14
|
-
<li class="<%= options[:tab] == :docs ? 'active' : '' %>"><a href="<%= path("/docs/environment/introduction") %>">Docs</a></li>
|
15
|
-
<li class="<%= options[:tab] == :api ? 'active' : '' %>"><a href="<%= path "/api/" %>">API</a></li>
|
16
|
-
<li class="<%= options[:tab] == :references ? 'active' : '' %>"><a href="<%= path "/references" %>">References</a></li>
|
17
|
-
<li class="<%= options[:tab] == :archive ? 'active' : '' %>"><a href="<%= path "/archive" %>">Archive</a></li>
|
18
|
-
<li class="<%= options[:tab] == :release ? 'active' : '' %>"><a href="<%= path "/release_notes" %>">Release Notes</a></li>
|
19
|
-
<li class="<%= options[:tab] == :contact ? 'active' : '' %>"><a href="<%= path "/contact" %>">Contact</a></li>
|
20
|
-
</ul>
|
21
|
-
<%= import "origen/web/logo.html" %>
|
22
|
-
</div><!--/.nav-collapse -->
|
23
|
-
</div>
|
24
|
-
</nav>
|
@@ -1,39 +0,0 @@
|
|
1
|
-
% render "layouts/basic.html", tab: :references do
|
2
|
-
|
3
|
-
## References
|
4
|
-
|
5
|
-
%# An example of how to write a references page:
|
6
|
-
%#### Documents
|
7
|
-
%#
|
8
|
-
%#* Block Guides
|
9
|
-
%# * [FTFL Block Guide](http://compass.freescale.net/go/ftflspecs)
|
10
|
-
%# * [FTFE Block Guide](http://compass.freescale.net/go/ftfespecs)
|
11
|
-
%# * [FTFA Block Guide](http://compass.freescale.net/go/ftflspecs)
|
12
|
-
%#* Hardmacro Creation Guides
|
13
|
-
%# * [TFSL Creation Guide](http://compass.freescale.net/go/tfsspec)
|
14
|
-
%# * [TFSE Creation Guide](http://compass.freescale.net/go/tfsspec)
|
15
|
-
%#* Training
|
16
|
-
%# * [FTFL Overview](http://compass.freescale.net/livelink/livelink/207024304/FTFL_Overview.ppt?func=doc.Fetch&nodeid=207024304)
|
17
|
-
%#* Quality
|
18
|
-
%# * [Quality Level Cheatsheet](http://compass.freescale.net/livelink/livelink/227376170/SOC_3.6_NVM_Quality_Level_1409_C90TFS.xlsx?func=doc.Fetch&nodeid=227376170)
|
19
|
-
%#
|
20
|
-
%#### Origen
|
21
|
-
%#
|
22
|
-
%#* [Origen Documentation](http://origen.freescale.net)
|
23
|
-
%#* [Origen Freeshare Commmunity](http://freeshare.freescale.net:2222/public/origen-cmty-svc/Pages/PublicHome.aspx)
|
24
|
-
%#
|
25
|
-
%#### Design Sync Vaults
|
26
|
-
%#
|
27
|
-
%#* C90TFS NVM Test Module
|
28
|
-
%# * <%= Origen.config.vault %>
|
29
|
-
%#* FTFL Design
|
30
|
-
%# * sync://sync-15040:15040/Projects/nvm_c90tfsw/ftfl
|
31
|
-
%# * sync://sync-15040:15040/Projects/nvm_c90tfsw/ftfl_firmware
|
32
|
-
%#* FTFE Design
|
33
|
-
%# * sync://sync-15040:15040/Projects/nvm_c90ftfe/ftfe
|
34
|
-
%# * sync://sync-15040:15040/Projects/nvm_c90ftfe/ftfe_firmware
|
35
|
-
%#* FTFA Design
|
36
|
-
%# * sync://sync-15040:15040/Projects/nvm_c90tfsw/ftfa
|
37
|
-
%# * sync://sync-15040:15040/Projects/nvm_c90tfsw/ftfa_firmware
|
38
|
-
|
39
|
-
% end
|