Hi Srivastava,

1. To answer your first question, you should but your custom extensions in 
“toaster/orm/fixtures/settings.xml”. The fixture files use absolute ID/PK 
values so make sure you use values that follow the ones in 
“toaster/orm/fixtures/poky.xml”.

2. To answer your second question, Toaster no longer uses the 
“toasterconf.json” file anymore. That has been replaced by the more 
Django-centric “fixture” feature. I need to get the Toaster documentation 
updated.

The new way Toaster loads its data is (see 
“toaster/bldcontrol/management/commands/checksettings.py”):
  (a) Toaster reads “toaster/orm/fixtures/settings.xml” for the core 
configuration settings.
  (b) Toaster reads in the fixture data “toaster/orm/fixtures/poky.xml” for the 
default bitbake and layers.
  (c) Toaster overlays any custom fixture data from 
“toaster/orm/fixtures/custom.xml”.
  (d) Finally, Toaster loads the layer index information

I believe that the “loaddata” replaces “loadconf”, but I have never tried it (I 
generally just remove the db and restart Toaster; I should try out the formal 
fixture  commands as per “https://code.djangoproject.com/wiki/Fixtures”).

Let me know if you have any additional questions.
- David

P.s. if you are looking to source your own Layer Index server at some point we 
can also help you.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Sugam Srivastava
Sent: Sunday, July 16, 2017 9:32 PM
To: [email protected]
Subject: [Toaster] Loadconf Command not working

Hi,
I have few queries regarding the toaster. I have installed the toaster on my 
local machine by downloading the project from git. I wanted to load some 
preconfigured information related to layer source and bitbake into a new and 
fresh instance of toaster, while trying to load toasterconf.json file , I was 
not able to use loadconf command. I am getting the error :-command not 
found:loadconf. After digging I found that the code which I am using does not 
come with the loadconf file in the bldcontrol folder but it is available in 
some other version of code available on git.
1) How can we use loadconf command with every version of code cloned from git??
2) How can we get the toasterconf.json file preconfigured with our project??
Regards,
Sugam Srivastava


-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to