summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/wic/agl-ic-container-rockchip-demo.wks
blob: 6339a876af98b4998db0a8c29c747076569a3c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# short-description: Single partition rootfs with UUID and no bootloader
# long-description: Creates a partitioned image with a single partition in
# use and does not contain a bootloader.

bootloader --ptable gpt
part --source rawcopy --sourceparams="file=idblock.img" --align 32 --no-table
part --source rawcopy --sourceparams="file=uboot.img" --part-name uboot --align 8192
part --source rawcopy --sourceparams="file=boot.img" --part-name boot
part / --source rootfs --fstype=ext4 --label host --align 4096 --size 1024
part --source rawcopy --sourceparams="file=guest-image-cluster-demo.ext4"
part --source rawcopy --sourceparams="file=guest-image-ivi-demo.ext4"
part --source rawcopy --sourceparams="file=agl-ivi-demo-qt.ext4"
part --source rawcopy --sourceparams="file=agl-ivi-demo-flutter.ext4"
ht .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
 * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef ALLOCATE_LIST_HPP
#define ALLOCATE_LIST_HPP
#include <vector>
#include <string>
#include <map>
#include <memory>
#include <mutex>
#include "wm_client.hpp"
#include "request.hpp"
#include "wm_error.hpp"

namespace wm
{

/* using std::experimental::nullopt;
using std::experimental::optional; */

class AppList
{
  public:
    AppList();
    virtual ~AppList();
    AppList(const AppList &obj) = delete;

    // Client Database Interface
    /* TODO: consider, which is better WMClient as parameter or not
       If the WMClient should be more flexible, I think this param should be WMClient class
    */
    void addClient(const std::string &appid, unsigned layer,
                    unsigned surface,const std::string &role);
    void removeClient(const std::string &appid);
    bool contains(const std::string &appid) const;
    int  countClient() const;
    std::shared_ptr<WMClient> lookUpClient(const std::string &appid);
    void removeSurface(unsigned surface);
    std::string getAppID(unsigned surface, const std::string &role, bool *found) const;

    // Request Interface
    unsigned currentRequestNumber() const;
    unsigned getRequestNumber(const std::string &appid) const;
    unsigned addRequest(WMRequest req);
    WMError setAction(unsigned req_num, const struct WMAction &action);
    WMError setAction(unsigned req_num, std::shared_ptr<WMClient> client,
                    const std::string &role, const std::string &area, TaskVisible visible);
    bool setEndDrawFinished(unsigned req_num, const std::string &appid, const std::string &role);
    bool endDrawFullfilled(unsigned req_num);
    void removeRequest(unsigned req_num);
    void next();
    bool haveRequest() const;

    struct WMTrigger getRequest(unsigned req_num, bool* found);
    const std::vector<struct WMAction> &getActions(unsigned req_num, bool* found);

    void clientDump();
    void reqDump();

  private:
    std::vector<WMRequest> req_list;
    std::unordered_map<std::string, std::shared_ptr<WMClient>> app2client;
    unsigned current_req;
    std::mutex mtx;
};

} // namespace wm
#endif // ALLOCATE_LIST_HPP