2 # Copyright (c) 2016 Samsung Electronics Co., Ltd
4 # Licensed under the Flora License, Version 1.1 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://floralicense.org/license/
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
22 def __init__(self, subcmd, arch, output, ksfile):
24 self.subcommand = subcmd
25 self.interactive = True
35 self.record_pkgs = None
37 self.local_pkgs_path = None
40 self.copy_kernel = None
41 self.install_pkgs = None
43 self.enabletmpfs = None
46 self.ignore_ksrepo = None
47 self.strict_mode = None
48 # sub-command : fs options
49 self.include_src = False
50 # sub-command: loop options
51 self.compress_image = None
52 self.include_src = None
54 # sub-command: raw options
55 self.compress_image = None
56 self.generate_bmap = None
57 self.fstab_entry = 'uuid'
60 mic.cmd_create.main(None, options, None)
62 if __name__ == "__main__":
64 archrecture = 'armv7l'
65 ksfile = '/home/shinchulwoo/project/image/mobile-wayland-armv7l-tm1.ks'
66 output = '/home/shinchulwoo/project/image'
67 options = MICOptions(subcommnad, archrecture, output, ksfile)