summaryrefslogtreecommitdiffstats
path: root/meta-netboot/classes/netboot.bbclass
blob: 85a0ead01d4ca10344687b613725ac2841e8e226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Enable network bootable image and initrd/initramfs

python () {
    if (bb.utils.contains_any("IMAGE_FSTYPES",["live","wic.vmdk"],True,False,d)):
        # typical case for Minnowboard Max
        d.setVar("INITRD_IMAGE","initramfs-netboot-image")
        d.setVar("INITRD_IMAGE_LIVE",d.getVar("INITRD_IMAGE",True))
        d.setVar("INITRD_LIVE","%s/%s-%s.ext4.gz" % (
            d.getVar("DEPLOY_DIR_IMAGE",True),
            d.getVar("INITRD_IMAGE_LIVE",True),
            d.getVar("MACHINE",True)
        ))
    else:
        d.setVar("INITRAMFS_IMAGE","initramfs-netboot-image")
        if (d.getVar("KERNEL_IMAGETYPE",True) == "uImage"):
            # case for "old" u-boot images, like Porter board
            d.setVar("NETBOOT_FSTYPES", "ext4.gz.u-boot");
        else:
            # case for new u-boot images which don't require uImage format
            d.setVar("NETBOOT_FSTYPES", "ext4.gz");
}
: public QAbstractListModel { Q_OBJECT public: enum VoiceAgentRoles { IdRole = Qt::UserRole + 1, NameRole, WuwRole, AuthStateRole, ConnStateRole, DialogStateRole, LoginParamsRole, ActiveRole, VendorRole, }; VoiceAgentModel(QObject *parent = Q_NULLPTR); QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; int rowCount(const QModelIndex &parent = QModelIndex()) const; QVariantList readLoginParams(const QModelIndex &index) const; void addAgent(VoiceAgentProfile *vap); void removeAgent(VoiceAgentProfile* vap); void removeAll(); bool agentExists(QString name, QString id, QString api) const; VoiceAgentProfile *getAgentFromName(QString name) const; VoiceAgentProfile *getAgentFromId(QString id) const; void updateAgentProperties(QString name, QString id, QString api, bool active, QString wuw); void updateAgentState(QString id); void updateAgentLoginData(QString id); private: QList<VoiceAgentProfile *> m_agents; QModelIndex indexOf(VoiceAgentProfile *agent); QHash<int, QByteArray> roleNames() const; }; #endif // VOICEAGENTMODEL_H