Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Puppet
Commits
b2582449
"manifests/base/firmware/manifests/base/firmware/uboot.pp" did not exist on "7c308bde1aa35eecab658036c226eb82850d9853"
Commit
b2582449
authored
Mar 01, 2021
by
James T. Lee
Browse files
Build Trusted Firmware-A for Pinebook Pro
parent
c95b9c66
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
40 deletions
+39
-40
manifests/base/firmware.pp
manifests/base/firmware.pp
+10
-40
manifests/base/firmware/arm.pp
manifests/base/firmware/arm.pp
+23
-0
manifests/base/firmware/raspberrypi.pp
manifests/base/firmware/raspberrypi.pp
+3
-0
manifests/base/firmware/uboot.pp
manifests/base/firmware/uboot.pp
+3
-0
No files found.
manifests/base/firmware.pp
View file @
b2582449
class
nest::base::firmware
{
class
nest::base::firmware
{
package
{
'sys-kernel/linux-firmware'
:
case
$facts
[
'profile'
][
'platform'
]
{
ensure
=>
installed
,
'beagleboneblack'
:
{
}
contain
'::nest::base::firmware::uboot'
$files
=
{
'manjaro/brcm/BCM4345C5.hcd'
=>
[
'pinebookpro'
],
'plugable/brcm/BCM20702A1-0a5c-21e8.hcd'
=>
[
'haswell'
],
'raspberrypi/brcm/BCM4345C5.hcd'
=>
[
'raspberrypi'
],
'raspberrypi/brcm/brcmfmac43456-sdio.bin'
=>
[
'pinebookpro'
,
'raspberrypi'
],
'raspberrypi/brcm/brcmfmac43456-sdio.clm_blob'
=>
[
'pinebookpro'
,
'raspberrypi'
],
'raspberrypi/brcm/brcmfmac43456-sdio.txt'
=>
[
'pinebookpro'
,
'raspberrypi'
],
}
$files_categorized
=
$files
.
reduce
([{},
{}])
|
$memo
,
$file
|
{
$present
=
$memo
[
0
]
$absent
=
$memo
[
1
]
$source
=
$file
[
0
]
$platforms
=
$file
[
1
]
$target
=
regsubst
(
$file
[
0
],
'^[^/]*/'
,
''
)
if
$facts
[
'profile'
][
'platform'
]
in
$platforms
{
[
$present
+
{
$target
=>
$source
},
$absent
]
}
else
{
[
$present
,
$absent
+
{
$target
=>
$source
}]
}
}
}
$files_present
=
$files_categorized
[
0
]
'pinebookpro'
:
{
$files_absent
=
$files_categorized
[
1
]
-
$files_categorized
[
0
]
contain
'::nest::base::firmware::arm'
contain
'::nest::base::firmware::uboot'
$files_present
.
each
|
$target
,
$source
|
{
Class
[
'nest::base::firmware::arm'
]
file
{
"/lib/firmware/
${target}
"
:
~>
Class
[
'nest::base::firmware::uboot'
]
mode
=>
'0644'
,
owner
=>
'root'
,
group
=>
'root'
,
source
=>
"puppet:///modules/nest/firmware/
${source}
"
,
# Makes the directory structure
require
=>
Package
[
'sys-kernel/linux-firmware'
],
}
}
}
$files_absent
.
each
|
$target
,
$source
|
{
'raspberrypi'
:
{
file
{
"/lib/firmware/
${target}
"
:
contain
'::nest::base::firmware::raspberrypi'
ensure
=>
absent
,
}
}
}
}
}
}
manifests/base/firmware/arm.pp
0 → 100644
View file @
b2582449
class
nest::base::firmware::arm
{
nest::lib::toolchain
{
'arm-none-eabi'
:
gcc_only
=>
true
,
}
vcsrepo
{
'/usr/src/arm-trusted-firmware'
:
ensure
=>
present
,
provider
=>
git
,
source
=>
'https://github.com/ARM-software/arm-trusted-firmware.git'
,
revision
=>
'v2.4'
,
}
include
'::nest::base::portage'
exec
{
"/usr/bin/make
${::nest::base::portage::makeopts}
PLAT=rk3399"
:
cwd
=>
'/usr/src/arm-trusted-firmware'
,
path
=>
[
'/usr/lib/distcc/bin'
,
'/usr/bin'
,
'/bin'
],
environment
=>
'HOME=/root'
,
# for distcc
timeout
=>
0
,
refreshonly
=>
true
,
subscribe
=>
Vcsrepo
[
'/usr/src/arm-trusted-firmware'
],
require
=>
Nest
::
Lib
::
Toolchain
[
'arm-none-eabi'
],
}
}
manifests/base/firmware/raspberrypi.pp
0 → 100644
View file @
b2582449
class
nest::base::firmware::raspberrypi
{
}
manifests/base/firmware/uboot.pp
0 → 100644
View file @
b2582449
class
nest::base::firmware::uboot
{
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment