Now you are ready to create a PDK workspace:
pdk workspace create <path>
e.g.,
pdk workspace create ~/mylinux
then cd into the newly created workspace:
cd <path>
e.g.,
cd ~/mylinux
Inside the etc/
directory of your newly created workspace create a file called channels.xml
that specifies the upstream channels that PDK should use to resolve abstract package references and download packages (see How to build and maintain a component for more information about abstract package references and pdk resolve).
For example, the following channels.xml
defines a channel called "components", which contains pre-made components for Debian systems:
<?xml version="1.0"?>
<channels>
<components>
<type>source</type>
<path>http://pdk.example.com/channels/debian/stretch/</path>
</components>
</channels>
As the value of the <path>
element suggests, these components are targeted to Debian 9 'stretch'.
Change back to the workspace directory.
Now run pdk channel update to update the channel cache (using the channels.xml
present):
pdk channel update
You are ready to pull the channel's components:
pdk pull components
The PDK is now set up and ready to use. For more information, please see the following document: