platform/upstream/mic.git
4 years agoMerge release-0.28.6 from 'tools/mic' 54/220954/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified tizen_5.5 tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 accepted/tizen/5.5/unified/20191228.075036 accepted/tizen/5.5/unified/wearable/hotfix/20201027.100111 accepted/tizen/6.0/unified/20201030.111620 accepted/tizen/6.0/unified/hotfix/20201102.231525 accepted/tizen/6.5/unified/20211029.014911 accepted/tizen/unified/20191226.123003 submit/tizen/20191226.054359 submit/tizen_5.5/20191226.063733 submit/tizen_5.5_wearable_hotfix/20201026.184307 submit/tizen_6.0/20201029.205503 submit/tizen_6.0_hotfix/20201102.192903 submit/tizen_6.0_hotfix/20201103.115103 submit/tizen_6.5/20211028.163501 tizen_6.0.m2_release tizen_6.5.m2_release upstream/0.28.6
SoonKyu Park [Thu, 26 Dec 2019 05:12:17 +0000 (14:12 +0900)]
Merge release-0.28.6 from 'tools/mic'

Change-Id: I6aa8025c850312f6a03f446f7876310900b277da

5 years agobump up to release 0.28.6 sandbox/release-0.28.6
jin.xiao [Tue, 26 Feb 2019 09:47:40 +0000 (17:47 +0800)]
bump up to release 0.28.6

Change-Id: Ib5038a0f9bbf09b4f6daa20cb5782337a36e54ca

6 years agobump up to release 0.28.5
Xiao Jin [Thu, 25 Oct 2018 06:00:17 +0000 (14:00 +0800)]
bump up to release 0.28.5

Change-Id: I0919283e5f717d58e64afa708207bd2d767787eb

6 years agoAdd %env section support
Slava Barinov [Wed, 17 Oct 2018 06:28:03 +0000 (09:28 +0300)]
Add %env section support

Kickstart file now may have section for environment variables setup.
Section should look like

 %env
 VARIABLE1=0x1000
 VARIABLE2="value"
 %end

This environment is set up for mic process and propagated into child processes
during firmware build.

Change-Id: Ida45e768781faf277438e3fb591d9bd931a09a1f
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
6 years agobump up to release 0.28.4
Xiao Jin [Wed, 26 Sep 2018 01:41:05 +0000 (09:41 +0800)]
bump up to release 0.28.4

Change-Id: I9e4e5d7275a20a1663ac8eef29d1a33f7b6feb5a

6 years agoadd new option --fslabel in part section
Xiao Jin [Tue, 25 Sep 2018 08:37:36 +0000 (16:37 +0800)]
add new option --fslabel in part section

Change-Id: I0ef3de0c99f23a971b4a862cce2ed38c5fc65a4b

6 years agobump up to release 0.28.3
Xiao Jin [Thu, 13 Sep 2018 02:22:07 +0000 (10:22 +0800)]
bump up to release 0.28.3

Change-Id: Ic050afa2972196ea5d5b21a650c399b7277317e4

6 years agoRevert "ext4 images are created with inode size 256 bytes"
Xiao Jin [Wed, 12 Sep 2018 07:44:59 +0000 (15:44 +0800)]
Revert "ext4 images are created with inode size 256 bytes"

This reverts commit c2b1299800f0f1f8cd4794fc5e55bdc20e35721d.

Change-Id: Id9308c18a70de32cb781091f999bb39715bdc55a

6 years agobump up to release 0.28.2
Xiao Jin [Fri, 3 Aug 2018 03:39:06 +0000 (11:39 +0800)]
bump up to release 0.28.2

Change-Id: Ia4dd2ce506e0076a7d6470a3cffeebbd80c09240

6 years agoext4 images are created with inode size 256 bytes
Xiao Jin [Fri, 3 Aug 2018 03:23:51 +0000 (11:23 +0800)]
ext4 images are created with inode size 256 bytes

Change-Id: I52427a52df78dbb27b6a2036d548b128b1485e6e

6 years agoremove tmp dir in runscript period
Xiao Jin [Fri, 3 Aug 2018 03:12:47 +0000 (11:12 +0800)]
remove tmp dir in runscript period

Change-Id: I6cfd6e09f8565bae074fe5736a4298fea2461a9d

6 years agoAdd locale related environment varibale because language is not set to one specified...
SoonKyu Park [Wed, 23 May 2018 02:27:24 +0000 (11:27 +0900)]
Add locale related environment varibale because language is not set to one specified in ks file env['LANG'] = 'language in ks' env['LC_ALL'] = 'language in ks'

Change-Id: I8ce8930455af4ae0c6f3482e9c12a74194da02f8

6 years agobump up to release 0.28.1
Xiao Jin [Wed, 9 May 2018 11:28:53 +0000 (19:28 +0800)]
bump up to release 0.28.1

Change-Id: I1f2f15e1fbaed476202c03b2f092a97f14358486

6 years agoChange the user and root passwd hash algorithm order to avoid user name same as root...
mao xiaojuan [Fri, 27 Apr 2018 07:23:43 +0000 (15:23 +0800)]
Change the user and root passwd hash algorithm order to avoid user name same as root name.

Change-Id: I6ceb8cf1d0a5f534ec533edadd5218a0b7ffd05d

6 years agoCheck exit status of vdfs image creation
Jungseung Lee [Wed, 28 Mar 2018 10:15:18 +0000 (19:15 +0900)]
Check exit status of vdfs image creation

If vdfs creation process exit with failure (EXIT_FAILURE), it should be checked.
Because it could cause malformed vdfs image creation.

In this patch, we added checking code of exit status.

Change-Id: I5aae6a8cb6de0b4dcf2dc1f9e27ee6139b26f918
Signed-off-by: Jungseung Lee <js07.lee@samsung.com>
6 years agobump up to release 0.28.0
Xiao Jin [Thu, 12 Apr 2018 11:11:58 +0000 (19:11 +0800)]
bump up to release 0.28.0

Change-Id: I331fd138b92656698bdca6f8d8265f4193f3b9b3

6 years agoApply btrfs mount options "--fsoptions=compress".
mao xiaojuan [Mon, 9 Apr 2018 11:27:12 +0000 (19:27 +0800)]
Apply btrfs mount options "--fsoptions=compress".

Change-Id: Ic286b0c43dd9fb376ab643170e9a3387156c4d96

6 years agoIn Tizen, losetup command support '-f' option, not '--find' option
Dohyung Kim [Tue, 27 Mar 2018 08:01:43 +0000 (17:01 +0900)]
In Tizen, losetup command support '-f' option, not '--find' option

https://review.tizen.org/gerrit/gitweb?p=platform/upstream/util-linux.git;a=blob;f=sys-utils/losetup1.c;h=059832de3a218f854746ef5bdeb1583a98acae19;hb=9a6b29405679d6d7b4cafd19a6fc7bb07ee14938#l1182

Change-Id: I5e54549ec2a742c187ac25d81a4052b18d71a697
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agofix invalid ExtDiskMount.blocksize when "-b [BLOCKSIZE]" extoption is passed
Dohyung Kim [Mon, 6 Jul 2015 12:34:30 +0000 (21:34 +0900)]
fix invalid ExtDiskMount.blocksize when "-b [BLOCKSIZE]" extoption is passed

To set blocksize by parsing "-b [BLOCKSIZE]" from extoptions in ks file

Change-Id: I0328cdae59a3466bde4d9a3bccb22026118544a1
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agochange __resize_to_minimal function
Xiao Jin [Wed, 28 Mar 2018 14:25:14 +0000 (22:25 +0800)]
change __resize_to_minimal function

Change-Id: I7b50e83cc8b1294f1d9b524ffbd69769eebd914b

6 years agobump up to release 0.27.9
mao xiaojuan [Thu, 22 Mar 2018 07:34:18 +0000 (15:34 +0800)]
bump up to release 0.27.9

Change-Id: Ic9072e9e159fb3a4de7714b7d5ea0db69f02dc77

6 years agoAdded ATTACHMENT_PATHS env and IMG_DIR_PATH env
Dohyung Kim [Tue, 13 Mar 2018 06:15:54 +0000 (15:15 +0900)]
Added ATTACHMENT_PATHS env and IMG_DIR_PATH env

Added enviorment veriables to access attachment files and image directory from ks post script.
- ATTACHMENT_PATHS: attachemt file paths
- IMG_DIR_PATH: a directory path located image files

Change-Id: Ia3f409ec8b9c784dba8d5b0baee9b6d9dada3baf
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agoRevert "call copy_attachment() after configure() and move attachment files"
Dohyung Kim [Tue, 13 Mar 2018 06:31:29 +0000 (15:31 +0900)]
Revert "call copy_attachment() after configure() and move attachment files"

This reverts commit 7db9b0c91a5b26f96a86ec10dfad261a7d781f3b.

Change-Id: Iaa242d65fd7fb14c379fff0f268ac1607005169e

6 years agobump up to release 0.27.8
mao xiaojuan [Fri, 26 Jan 2018 09:28:54 +0000 (17:28 +0800)]
bump up to release 0.27.8

Change-Id: I7340bb2cbd256a2f33ed082e29507e99a289ead5

6 years agouse the value of --pack-to option as filename to match all outputs
Dohyung Kim [Thu, 20 Jul 2017 07:39:49 +0000 (16:39 +0900)]
use the value of --pack-to option as filename to match all outputs

AS-IS:
$ sudo mic cr loop PLATFORM.ks --release SNAPSHOT --pack-to IMAGENAME.tar.gz
  IMAGENAME.tar.gz
  IMAGENAME.xml
  SNAPSHOT-PLATFORM.packages
  SNAPSHOT-PLATFORM.files
  SNAPSHOT-PLATFORM.license
  SNAPSHOT-PLATFORM.ks
  ...

TO-BE:
$ sudo mic cr loop PLATFORM.ks --release SNAPSHOT --pack-to IMAGENAME.tar.gz
  IMAGENAME.tar.gz
  IMAGENAME.xml
  IMAGENAME.packages
  IMAGENAME.files
  IMAGENAME.license
  IMAGENAME.ks
  ...

Change-Id: I5cc148a09b3e4cc4ed863100f0fde4df362038cd
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agosupport both %runscript and %post-umount to perform scripts before packaging
Dohyung Kim [Tue, 21 Nov 2017 05:55:28 +0000 (14:55 +0900)]
support both %runscript and %post-umount to perform scripts before packaging

- add %post-umount section which behaves the same as %runscript
  (if both %runscript and %post-umount are defined then KickstartError occurs)
- move post umount scripts from /var/tmp/post_umount_scripts/ on image to host
- post umount scripts can be use UMOUNT_SCRIPTS_PATH env variable
  (UMOUNT_SCRIPTS_PATH: directory path where post umount scripts are located on host)

Change-Id: Ib88c103f0d3e84c067d0d6683f406a5cac92739a
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agoadd --use-mic-in-bootstrap option
Dohyung Kim [Fri, 9 Jun 2017 11:00:01 +0000 (20:00 +0900)]
add --use-mic-in-bootstrap option

use mic in bootstrap without copy host mic to bootstrap.
by default, copy host mic to bootstrap and use it

Change-Id: I3f4f03cc666df05ad4a7c393b771a2487350b9fe
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agoDisplay all rpm debug messages with --rpm-debug
Dohyung Kim [Wed, 15 Nov 2017 02:22:49 +0000 (11:22 +0900)]
Display all rpm debug messages with --rpm-debug

Change-Id: I66ed6a999b20c94238e7fdc29ee68782ab4cd241
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agocall copy_attachment() after configure() and move attachment files
Dohyung Kim [Wed, 15 Nov 2017 08:48:39 +0000 (17:48 +0900)]
call copy_attachment() after configure() and move attachment files

- Call BaseImager.copy_attachment() after BaseImager.configure()
  Post scripts on configure() cannot access attachment files which come from install_root.
  So call copy_attachment() after running post scripts.

- Move attachment files not copy.
  If copying attachment files from install_root, then attachment files remain in install_root.
  So use mv instead of cp for deduplication.

Change-Id: Ie7a1d516331e29eaba975bc186b9644b96c17fbc
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agoAdd init_expand option to partition
Dohyung Kim [Tue, 26 Dec 2017 09:36:57 +0000 (18:36 +0900)]
Add init_expand option to partition

  - if init_expand is enabled, expand partition size(* 1.5) before mount
  - check partition size after running resize2fs to verify partition size

Change-Id: I60e889f04368877b9d74a581279c9ea4f5d33217
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agoadd no_shrink option to partition, fix parameter of disk.expand()
Dohyung Kim [Thu, 2 Jul 2015 02:39:09 +0000 (11:39 +0900)]
add no_shrink option to partition, fix parameter of disk.expand()

* add no_shrink option to partition
  - if no_shrink is enable in specific partition, this partition do not shrink.
  - if not, following pack_to or shrink option in loop command
* fix parameter of disk.expand()
  - expand(size) -> expand(size=size)

Change-Id: Ic9486621795c0e1a867fd551d61f152c693b6c52
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agoSetup environment to perform signing script
SoonKyu Park [Wed, 8 Nov 2017 06:58:24 +0000 (15:58 +0900)]
Setup environment to perform signing script

Change-Id: I8b7a5916a6db8863a03b24d297a479e0d990adad

6 years agoif post scripts fails, CreatorError is raised to catch script errors such as signing...
Dohyung Kim [Tue, 21 Nov 2017 06:45:37 +0000 (15:45 +0900)]
if post scripts fails, CreatorError is raised to catch script errors such as signing error

  $ cat PLATFORM.ks
  ...
  %post
  # if you want to catch script error, add set command and trap command at the top of script
  set -e
  trap 'echo KS POST ERROR: command \"$BASH_COMMAND\" failed with error code $?' ERR
  # it will cause an error
  /usr/bin/error_command
  %end
  ...

  $ sudo mic cr auto PLATFORM.ks
  ...
  INFO: Running post scripts ...
  INFO: /tmp/ks-postscript-FShzJp: line 5: /usr/bin/error_command: No such file or directory
  INFO: KS POST ERROR: command "/usr/bin/error_command" failed with error code 1
  INFO:
  ERROR: Failed to execute %post script with '/bin/sh'

Change-Id: I1a34a343b8bdd044ca85939e446c43cce783c900
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agouse registered qemu emulator filename if already registered.
Dohyung Kim [Mon, 5 Jun 2017 05:49:23 +0000 (14:49 +0900)]
use registered qemu emulator filename if already registered.

1. preserve-argv[0] flag is enabled
   copy both qemu-XXX and qemu-XXX-binfmt and use them.
2. flag is disabled and the copied qemu and the registered qemu are different
   create symlink as the registered qemu emulator filename and use symlink

Change-Id: I3f9050a01cc3bd0431b37a2c1e29729ef15ee765
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agosupport multiple mic execution at same time
Dohyung Kim [Tue, 16 May 2017 06:39:02 +0000 (15:39 +0900)]
support multiple mic execution at same time

do not unregister qemu emulator before image creation
keep DEVICE_LOCKFILE to prevent a race condition

Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Change-Id: I5714194ef6b48f80812b2f8b534d83fc27a663e4

6 years agoUse SHA512 instead of MD5 to encrypt root password
yuhuan.yang [Wed, 24 Jan 2018 05:22:45 +0000 (13:22 +0800)]
Use SHA512 instead of MD5 to encrypt root password

Change-Id: I646334220703dedc28b7b1286e28e01ef4c485de
(cherry picked from commit 707754fa61eb4ae452e3af267e14290552122549)

6 years agoFix the bug that use local mic-bootstrap to run mic.
mao xiaojuan [Tue, 28 Nov 2017 08:58:58 +0000 (16:58 +0800)]
Fix the bug that use local mic-bootstrap to run mic.

Change-Id: I3266c24c2d7be8e7fe91e2d24c6b4f0afb62da87

6 years agoSupport local mic-bootstrap rpm package to run mic.
mao xiaojuan [Thu, 23 Nov 2017 08:05:04 +0000 (16:05 +0800)]
Support local mic-bootstrap rpm package to run mic.

Change-Id: I80298991eea5a9552a497b6e4b290e7b5b94555c

7 years agoAnother method of install tpk.
yuhuan.yang [Mon, 16 Oct 2017 16:42:28 +0000 (00:42 +0800)]
Another method of install tpk.

Change-Id: Ibe2f1cfaa7625ab1ea938feda5df6406beb267e6

7 years agoThe value of fstype is not cpio, an image is generated by cpio.
xiaojuan.mao [Fri, 13 Oct 2017 04:07:08 +0000 (12:07 +0800)]
The value of fstype is not cpio, an image is generated by cpio.

Change-Id: Ia9ae3d445c708b444da0dee1e5060725db9b9403

7 years agoWhen increase rpm release number, user can use --local-pkgs-path to install local...
xiaojuan.mao [Fri, 22 Sep 2017 07:28:40 +0000 (15:28 +0800)]
When increase rpm release number, user can use --local-pkgs-path to install local pkgs.

Change-Id: I249c2b42a54bd311bb09296a787ffe7d2f03379d

7 years agobump up to release 0.27.7
yuhuan.yang [Mon, 11 Sep 2017 13:40:28 +0000 (21:40 +0800)]
bump up to release 0.27.7

Change-Id: I86dd1072241fae911f6f1fbcb6e79a0583c75947

7 years agoTimezone setting change
yuhuan.yang [Tue, 29 Aug 2017 11:33:16 +0000 (19:33 +0800)]
Timezone setting change

Change-Id: I90bdc068430589f04ab148b3b8b9b31d8b197613

7 years agoRun certain script before creation of tar.gz image.
xiaojuan.mao [Tue, 8 Aug 2017 10:27:18 +0000 (18:27 +0800)]
Run certain script before creation of tar.gz image.

Change-Id: Id6efc3334dc19e9198251aa79b1d6b965d3df0d1

7 years agoLocally built mic-bootstrap using gbs cannot be used in mic.
xiaojuan.mao [Tue, 8 Aug 2017 08:26:19 +0000 (16:26 +0800)]
Locally built mic-bootstrap using gbs cannot be used in mic.

Change-Id: I9fe14df33b74670321ca302d1783f647e87c216d

7 years agoAdd new option of tpk_install
yuhuan.yang [Mon, 7 Aug 2017 11:07:17 +0000 (19:07 +0800)]
Add new option of tpk_install

Change-Id: Id67c37b143f723e98491aad1d6730446149f01a5

7 years agoAmend mic cr option of run_script
yuhuan.yang [Mon, 17 Jul 2017 16:12:38 +0000 (00:12 +0800)]
Amend mic cr option of run_script

Change-Id: Ib088fb9d56b08c9aeae01908827f5507d972cdec

7 years agoAdd new option of --run_script
yuhuan.yang [Fri, 14 Jul 2017 14:34:05 +0000 (22:34 +0800)]
Add new option of --run_script

Change-Id: I7c2d194ba3bcc4e8fc78073bc922f6e7eb853821

7 years agofix the bug that modify the order of generating image by cpio.
xiaojuan.mao [Thu, 13 Jul 2017 05:58:05 +0000 (13:58 +0800)]
fix the bug that modify the order of generating image by cpio.

Change-Id: I86b9a79a4cca110c7e4cafe0bab48cf6bd94a278

7 years agoModify the order of generating image by cpio.
xiaojuan.mao [Fri, 7 Jul 2017 05:52:29 +0000 (13:52 +0800)]
Modify the order of generating image by cpio.

Change-Id: I90cb12a4d68f6989af25318b6181a2ed9e9ebe88

7 years agobump up to release 0.27.6
xiaojuan.mao [Wed, 12 Jul 2017 09:17:15 +0000 (17:17 +0800)]
bump up to release 0.27.6

Change-Id: I2e0a0c99b8d4e486f14404bdda9554ca1d08f48f

7 years agoChange the order of generating image by cpio.
xiaojuan.mao [Mon, 12 Jun 2017 12:18:06 +0000 (20:18 +0800)]
Change the order of generating image by cpio.

Change-Id: Ia1d2cc22b9a6e695a6f905574f8081c5910f0e8b

7 years agoSolve issue:mic has error when env no_proxy is 165.xx.xxx...
yuhuan.yang [Tue, 23 May 2017 15:33:47 +0000 (23:33 +0800)]
Solve issue:mic has error when env no_proxy is 165.xx.xxx...

Change-Id: I76abf3db3854b8d6a2db369a762650712efd14df

7 years agoSolve mic hang issue, add timeout to show failure.
yuhuan.yang [Mon, 22 May 2017 13:55:23 +0000 (21:55 +0800)]
Solve mic hang issue, add timeout to show failure.

Change-Id: If1d554455ff6d159789cd0aebae88ed3bdf2451b

7 years agoModify the arguments that use cpio to generate image.
xiaojuan.mao [Mon, 22 May 2017 02:10:44 +0000 (10:10 +0800)]
Modify the arguments that use cpio to generate image.

Change-Id: Ieb9dc524fedd056d0ff61bd2ec139a44395d1daf

7 years agoUse cpio gzip in mic.
xiaojuan.mao [Wed, 26 Apr 2017 08:16:49 +0000 (16:16 +0800)]
Use cpio gzip in mic.

Change-Id: Ic7b3512b153ec5c92cd47a281bab8341f01acaf0

7 years agoprint package name, before install
Dohyung Kim [Fri, 4 Sep 2015 12:31:52 +0000 (21:31 +0900)]
print package name, before install

Change-Id: I30f52998b86b8a0d86cd2a633b6d51cfbf5890c2
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
7 years agochange tpk install error message format
Dohyung Kim [Mon, 13 Feb 2017 05:20:37 +0000 (14:20 +0900)]
change tpk install error message format

- old message format:
  The error install package info:
  org.tizen.browser
  org.tizen.call
  ...

- new message format:
  The error install package info: org.tizen.browser
  The error install package info: org.tizen.call
  ...

Change-Id: I017c5765894ffb8a4bd6a3507486dd159f2dae38
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
7 years agoadd SIGTERM handler for exit gracefully
Dohyung Kim [Fri, 12 May 2017 02:17:27 +0000 (11:17 +0900)]
add SIGTERM handler for exit gracefully

mic exit abnormally when it get SIGTERM from kill command or jenkins cancel.
mouned directories reamin. it should be umount.

Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Change-Id: I71d40bc409ffaed13f2c78ccfd6b03059a934a95

7 years agodisplay filesystem size of each images
Dohyung Kim [Thu, 4 May 2017 06:42:12 +0000 (15:42 +0900)]
display filesystem size of each images

  ...
  filesystem size of dzImage : 5378048 bytes
  filesystem size of modules.img : 12582912 bytes
  filesystem size of rootfs.img : 759287808 bytes
  filesystem size of system-data.img : 75726848 bytes
  filesystem size of user.img : 71839744 bytes
  ...

Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Change-Id: I5f75ba76205b9cfcfcfbb10d9df49c2f7ae673b3

7 years agodisplay all rpm debug messages in debug mode
Dohyung Kim [Thu, 4 May 2017 01:44:08 +0000 (10:44 +0900)]
display all rpm debug messages in debug mode

  - debug mode: RPMLOG_DEBUG
  - non-debug mode: RPMLOG_NOTICE(default)

Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Change-Id: Ibb01112e556ee99127001faeb9dc2a2c0827f70b

7 years agoprint warning message for detecting rpm post script failed
Dohyung Kim [Thu, 4 May 2017 01:19:10 +0000 (10:19 +0900)]
print warning message for detecting rpm post script failed

  ...
  [05/04 01:13:18 UTC] Installing: libstdc++
  [05/04 01:13:18 UTC] (libstdc++) Post script failed
  ...

Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Change-Id: I8efc466b3a18e9c9f2bde05ad26d058178cf90b8

7 years agochange installed package name length from 20 to 50
Dohyung Kim [Fri, 28 Apr 2017 02:33:06 +0000 (11:33 +0900)]
change installed package name length from 20 to 50

Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Change-Id: If521e359f5bf13893dcd3f9c6885c8cdce0f8667

7 years agofix corrupted log messages in log file
Dohyung Kim [Tue, 25 Apr 2017 07:36:43 +0000 (16:36 +0900)]
fix corrupted log messages in log file

os.ftruncate() won't reset the file pointer
os.lseek(fd, 0, os.SEEK_SET) is needed after os.ftruncate(fd, 0)

Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Change-Id: I94bdd3993afccee2ea2d8903aa29505fec13c957

7 years agoUse cpio gzip in mic.
xiaojuan.mao [Fri, 7 Apr 2017 07:08:40 +0000 (15:08 +0800)]
Use cpio gzip in mic.

Change-Id: Ifce99807698d3a35fd3dddcdf8f9d60f4c2bb22c

7 years agobump up to release 0.27.5
yuhuan.yang [Wed, 12 Jul 2017 14:01:56 +0000 (22:01 +0800)]
bump up to release 0.27.5

Change-Id: I054fb5ae41f452c49aa8fc32f9cc5b9bf92a6bec

7 years agoSolve image not clean after created
yyh [Sat, 1 Apr 2017 14:10:27 +0000 (22:10 +0800)]
Solve image not clean after created

Change-Id: I02352678364c5879a3cee75b246ab06216f84187

7 years agobump up to release 0.27.4
SoonKyu Park [Tue, 4 Apr 2017 10:50:58 +0000 (19:50 +0900)]
bump up to release 0.27.4

Change-Id: I2610a237daec485f2b24c8e942e3b0d847d929aa

7 years agoMerge release-0.27.4 from 'tools/mic' accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_5.5_unified_mobile_hotfix sandbox/soong9/0.27.4_upgrade tizen_3.0 tizen_4.0 tizen_4.0_tv tizen_5.0 tizen_5.5_mobile_hotfix accepted/tizen/3.0/common/20170630.141935 accepted/tizen/3.0/ivi/20170630.081242 accepted/tizen/3.0/mobile/20170630.081407 accepted/tizen/3.0/tv/20170630.081427 accepted/tizen/3.0/wearable/20170630.081227 accepted/tizen/4.0/unified/20170816.013304 accepted/tizen/4.0/unified/20170828.222729 accepted/tizen/5.0/unified/20181102.030014 accepted/tizen/5.5/unified/20191031.011055 accepted/tizen/5.5/unified/mobile/hotfix/20201027.073755 accepted/tizen/unified/20170629.085549 submit/tizen/20170602.051709 submit/tizen/20170619.064646 submit/tizen_3.0/20170602.051619 submit/tizen_3.0/20170619.080749 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100006 submit/tizen_5.0/20181101.000007 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release tizen_5.5.m2_release upstream/0.27.4
SoonKyu Park [Thu, 1 Jun 2017 10:39:16 +0000 (19:39 +0900)]
Merge release-0.27.4 from 'tools/mic'

Change-Id: I7f4d55c6c384bc520b2fbe2004affb9d27ed919f

7 years agobump up to release 0.27.4 sandbox/soong9/tools_mic
SoonKyu Park [Tue, 4 Apr 2017 10:50:58 +0000 (19:50 +0900)]
bump up to release 0.27.4

Change-Id: I2610a237daec485f2b24c8e942e3b0d847d929aa

7 years agoShow logs inside 'Running scripts' in mic.
xiaojuan.mao [Tue, 14 Mar 2017 02:13:13 +0000 (10:13 +0800)]
Show logs inside 'Running scripts' in mic.

Change-Id: I6be708a8c791911d96d903063401a156bc23c138

7 years agoCopy ks setting lang to file /etc/config/mic_language for other use
yyh [Mon, 13 Mar 2017 10:14:23 +0000 (18:14 +0800)]
Copy ks setting lang to file /etc/config/mic_language for other use

Change-Id: Iaa62e8a2cc74bd868043044636b2ff1172036d0d

7 years agoReplace 'copy' to 'symbolic link' in timeznoe setting inside mic.
xiaojuan.mao [Fri, 3 Mar 2017 08:40:44 +0000 (16:40 +0800)]
Replace 'copy' to 'symbolic link' in timeznoe setting inside mic.

Change-Id: Idea80f05b7e31ec0cbc34ab627d90977b517527f

7 years agoMerge add mipsel register on binfmt_misc && Add support of qemu-mipsel patch
Jun Wang [Fri, 3 Mar 2017 07:56:24 +0000 (15:56 +0800)]
Merge add mipsel register on binfmt_misc && Add support of qemu-mipsel patch

Change-Id: I6df917f19662ecfeb8ef5810b9ce2c9765018326

7 years agoFixup changelog that causes errors.
MyungJoo Ham [Tue, 24 Jan 2017 05:25:48 +0000 (14:25 +0900)]
Fixup changelog that causes errors.

This fixes the following Debian git-build-recipe error:

RUN ['git-build-recipe', '--safe', '--no-build', '--manifest', '/home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild/home/buildd/work/tree/manifest', '--distribution', 'xenial', '--allow-fallback-to-native', '--append-version', '~ubuntu16.04.1', '/home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild/home/buildd/work/recipe', '/home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild/home/buildd/work/tree']
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_util.py", line 139, in add_autobuild_changelog_entry
    substitute_changelog_vars(base_branch, None, cl)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_version.py", line 172, in substitute_changelog_vars
    base_branch.deb_version = debupstream_var.replace(base_branch.deb_version)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 101, in replace
    return value.replace(self.name, self.get())
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_version.py", line 59, in get
    "No previous changelog to take the upstream version from")
gitbuildrecipe.recipe.SubstitutionUnavailable: Substitution for {debupstream} not available: No previous changelog to take the upstream version from

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/git-build-recipe", line 9, in <module>
    load_entry_point('git-build-recipe==0.1', 'console_scripts', 'git-build-recipe')()
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/main.py", line 147, in main
    append_version=args.append_version)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_util.py", line 143, in add_autobuild_changelog_entry
    "%s was used: %s: %s." % (e.name, e.reason, reason))
Exception: No previous changelog to take the upstream version from as {debupstream} was used: No previous changelog to take the upstream version from: debian/changelog didn't contain any parseable stanzas.
resource.struct_rusage(ru_utime=1.7839999999999998, ru_stime=1.116, ru_maxrss=33232, ru_ixrss=0, ru_idrss=0, ru_isrss=0, ru_minflt=25805, ru_majflt=41, ru_nswap=0, ru_inblock=12560, ru_oublock=18536, ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=1382, ru_nivcsw=290)
RUN: /usr/share/launchpad-buildd/slavebin/scan-for-processes ['scan-for-processes', 'RECIPEBRANCHBUILD-1302092']
Scanning for processes to kill in build /home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild...
RUN: /usr/share/launchpad-buildd/slavebin/umount-chroot ['umount-chroot', 'RECIPEBRANCHBUILD-1302092']
Unmounting chroot for build RECIPEBRANCHBUILD-1302092...
RUN: /usr/share/launchpad-buildd/slavebin/remove-build ['remove-build', 'RECIPEBRANCHBUILD-1302092']
Removing build RECIPEBRANCHBUILD-1302092

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoShow logs inside 'Running scripts' in mic.
xiaojuan.mao [Tue, 14 Mar 2017 02:13:13 +0000 (10:13 +0800)]
Show logs inside 'Running scripts' in mic.

Change-Id: I6be708a8c791911d96d903063401a156bc23c138

7 years agoCopy ks setting lang to file /etc/config/mic_language for other use
yyh [Mon, 13 Mar 2017 10:14:23 +0000 (18:14 +0800)]
Copy ks setting lang to file /etc/config/mic_language for other use

Change-Id: Iaa62e8a2cc74bd868043044636b2ff1172036d0d

7 years agoReplace 'copy' to 'symbolic link' in timeznoe setting inside mic.
xiaojuan.mao [Fri, 3 Mar 2017 08:40:44 +0000 (16:40 +0800)]
Replace 'copy' to 'symbolic link' in timeznoe setting inside mic.

Change-Id: Idea80f05b7e31ec0cbc34ab627d90977b517527f

7 years agoMerge add mipsel register on binfmt_misc && Add support of qemu-mipsel patch
Jun Wang [Fri, 3 Mar 2017 07:56:24 +0000 (15:56 +0800)]
Merge add mipsel register on binfmt_misc && Add support of qemu-mipsel patch

Change-Id: I6df917f19662ecfeb8ef5810b9ce2c9765018326

7 years agoProvide alternative for deprecated package
MyungJoo Ham [Wed, 1 Feb 2017 10:10:46 +0000 (19:10 +0900)]
Provide alternative for deprecated package

dh-python is available from Ubuntu 14.04 and
python-support is deprecated.

Change-Id: I0c181e0371327d483bc0e0ca35bd8124ef2c8c56
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoFixup changelog that causes errors.
MyungJoo Ham [Tue, 24 Jan 2017 05:25:48 +0000 (14:25 +0900)]
Fixup changelog that causes errors.

This fixes the following Debian git-build-recipe error:

RUN ['git-build-recipe', '--safe', '--no-build', '--manifest', '/home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild/home/buildd/work/tree/manifest', '--distribution', 'xenial', '--allow-fallback-to-native', '--append-version', '~ubuntu16.04.1', '/home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild/home/buildd/work/recipe', '/home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild/home/buildd/work/tree']
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_util.py", line 139, in add_autobuild_changelog_entry
    substitute_changelog_vars(base_branch, None, cl)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_version.py", line 172, in substitute_changelog_vars
    base_branch.deb_version = debupstream_var.replace(base_branch.deb_version)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 101, in replace
    return value.replace(self.name, self.get())
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_version.py", line 59, in get
    "No previous changelog to take the upstream version from")
gitbuildrecipe.recipe.SubstitutionUnavailable: Substitution for {debupstream} not available: No previous changelog to take the upstream version from

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/git-build-recipe", line 9, in <module>
    load_entry_point('git-build-recipe==0.1', 'console_scripts', 'git-build-recipe')()
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/main.py", line 147, in main
    append_version=args.append_version)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_util.py", line 143, in add_autobuild_changelog_entry
    "%s was used: %s: %s." % (e.name, e.reason, reason))
Exception: No previous changelog to take the upstream version from as {debupstream} was used: No previous changelog to take the upstream version from: debian/changelog didn't contain any parseable stanzas.
resource.struct_rusage(ru_utime=1.7839999999999998, ru_stime=1.116, ru_maxrss=33232, ru_ixrss=0, ru_idrss=0, ru_isrss=0, ru_minflt=25805, ru_majflt=41, ru_nswap=0, ru_inblock=12560, ru_oublock=18536, ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=1382, ru_nivcsw=290)
RUN: /usr/share/launchpad-buildd/slavebin/scan-for-processes ['scan-for-processes', 'RECIPEBRANCHBUILD-1302092']
Scanning for processes to kill in build /home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild...
RUN: /usr/share/launchpad-buildd/slavebin/umount-chroot ['umount-chroot', 'RECIPEBRANCHBUILD-1302092']
Unmounting chroot for build RECIPEBRANCHBUILD-1302092...
RUN: /usr/share/launchpad-buildd/slavebin/remove-build ['remove-build', 'RECIPEBRANCHBUILD-1302092']
Removing build RECIPEBRANCHBUILD-1302092

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoMerge release-0.27.3 from 'tools/mic' accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable sandbox/soong9/cpio tizen_3.0_tv accepted/tizen/3.0/common/20170201.164711 accepted/tizen/3.0/ivi/20170201.091622 accepted/tizen/3.0/mobile/20170201.091446 accepted/tizen/3.0/tv/20170201.091513 accepted/tizen/3.0/wearable/20170201.091556 accepted/tizen/common/20170124.181959 accepted/tizen/ivi/20170125.085518 accepted/tizen/mobile/20170125.085431 accepted/tizen/tv/20170125.085449 accepted/tizen/unified/20170309.040149 accepted/tizen/wearable/20170125.085502 submit/tizen/20170124.041446 submit/tizen/20170124.070203 submit/tizen_3.0/20170124.041343 submit/tizen_3.0/20170124.055025 submit/tizen_3.0/20170201.064334 submit/tizen_unified/20170308.100415 tizen_4.0.m1_release upstream/0.27.3
SoonKyu Park [Fri, 13 Jan 2017 05:07:35 +0000 (14:07 +0900)]
Merge release-0.27.3 from 'tools/mic'

Change-Id: Icd174a478b4e10c562c764b0ceb657adcf678e54

7 years agobump up to release 0.27.3
Jiankang Fan [Mon, 19 Dec 2016 03:02:45 +0000 (11:02 +0800)]
bump up to release 0.27.3

Change-Id: Idaa905f768ea684920d4b94223095e6fed9204ca
Signed-off-by: Jiankang Fan <jiankang.fan@samsung.com>
Conflicts:
ChangeLog
packaging/mic.changes

7 years agoShow pkgid when install pkg error
Jiankang Fan [Tue, 20 Dec 2016 00:53:00 +0000 (08:53 +0800)]
Show pkgid when install pkg error

Change-Id: I8bb5737b82f956a6eeccbc994c6a8c48ecde002a
Signed-off-by: Jiankang Fan <jiankang.fan@samsung.com>
7 years agosupport vdfs and squashfs image creation
Jiankang Fan [Mon, 19 Dec 2016 12:59:12 +0000 (20:59 +0800)]
support vdfs and squashfs image creation

Change-Id: Ife64b311bfece1e2f3b2a231062a9a2b9e69d897
Signed-off-by: Jiankang Fan <jiankang.fan@samsung.com>
7 years agobump up to release 0.27.2
SoonKyu Park [Mon, 26 Sep 2016 05:23:01 +0000 (14:23 +0900)]
bump up to release 0.27.2

Change-Id: I8040f7786af0b31c02fe169a1f7f626fc7a99fd0

7 years agobump up to release 0.27.3
Jiankang Fan [Mon, 19 Dec 2016 03:02:45 +0000 (11:02 +0800)]
bump up to release 0.27.3

Change-Id: Idaa905f768ea684920d4b94223095e6fed9204ca
Signed-off-by: Jiankang Fan <jiankang.fan@samsung.com>
Conflicts:
ChangeLog
packaging/mic.changes

7 years agoShow pkgid when install pkg error
Jiankang Fan [Tue, 20 Dec 2016 00:53:00 +0000 (08:53 +0800)]
Show pkgid when install pkg error

Change-Id: I8bb5737b82f956a6eeccbc994c6a8c48ecde002a
Signed-off-by: Jiankang Fan <jiankang.fan@samsung.com>
7 years agosupport vdfs and squashfs image creation
Jiankang Fan [Mon, 19 Dec 2016 12:59:12 +0000 (20:59 +0800)]
support vdfs and squashfs image creation

Change-Id: Ife64b311bfece1e2f3b2a231062a9a2b9e69d897
Signed-off-by: Jiankang Fan <jiankang.fan@samsung.com>
8 years agoModify Release version to '0' for gbs build 33/89733/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170105.024724 accepted/tizen/3.0.m2/tv/20170105.024923 accepted/tizen/3.0.m2/wearable/20170105.025030 accepted/tizen/3.0/common/20161114.111258 accepted/tizen/3.0/ivi/20161011.055309 accepted/tizen/3.0/mobile/20161015.033620 accepted/tizen/3.0/tv/20161016.005137 accepted/tizen/3.0/wearable/20161015.083518 accepted/tizen/common/20160927.152624 accepted/tizen/ivi/20160927.230726 accepted/tizen/mobile/20160927.230633 accepted/tizen/tv/20160927.230650 accepted/tizen/wearable/20160927.230707 submit/tizen/20160927.010916 submit/tizen_3.0.m2/20170104.093753 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000005 submit/tizen_3.0_mobile/20161015.000004 submit/tizen_3.0_tv/20161015.000004 submit/tizen_3.0_wearable/20161015.000004
SoonKyu Park [Mon, 26 Sep 2016 13:35:46 +0000 (22:35 +0900)]
Modify Release version to '0' for gbs build

Change-Id: I52ac11d8d5752ef5fd0e4247144ffb065e6acef0

8 years agobump up to release 0.27.2
SoonKyu Park [Mon, 26 Sep 2016 05:23:01 +0000 (14:23 +0900)]
bump up to release 0.27.2

Change-Id: I8040f7786af0b31c02fe169a1f7f626fc7a99fd0

8 years agoAdd subcommand option parameters(-v, -d, -i) for fixing tizen2.4 mobile issue
jianzhong.fang [Sun, 18 Sep 2016 03:04:42 +0000 (11:04 +0800)]
Add subcommand option parameters(-v, -d, -i) for fixing tizen2.4 mobile issue

Change-Id: I18f0667bc7537aaf1e8eee5ec3320f1b52058071
Signed-off-by: jianzhong.fang <jz.fang@samsung.com>
8 years agoAdd exclude-from-image option to exclude specific images
jianzhong.fang [Fri, 19 Aug 2016 00:27:03 +0000 (08:27 +0800)]
Add exclude-from-image option to exclude specific images

Change-Id: I5651efc10e3b250af0f31f5224f9dca40a5d7124

8 years agoAdd subcommand option parameters(-v, -d, -i) for fixing tizen2.4 mobile issue
jianzhong.fang [Sun, 18 Sep 2016 03:04:42 +0000 (11:04 +0800)]
Add subcommand option parameters(-v, -d, -i) for fixing tizen2.4 mobile issue

Change-Id: I18f0667bc7537aaf1e8eee5ec3320f1b52058071
Signed-off-by: jianzhong.fang <jz.fang@samsung.com>
8 years agoAdd exclude-from-image option to exclude specific images
jianzhong.fang [Fri, 19 Aug 2016 00:27:03 +0000 (08:27 +0800)]
Add exclude-from-image option to exclude specific images

Change-Id: I5651efc10e3b250af0f31f5224f9dca40a5d7124

8 years agoMerge release-0.27.1 from 'tools/mic' tizen_0.27.1 accepted/tizen/common/20160923.160804 submit/tizen/20160923.060613
SoonKyu Park [Fri, 23 Sep 2016 01:35:49 +0000 (10:35 +0900)]
Merge release-0.27.1 from 'tools/mic'

Change-Id: Ifba625f3902104e6a21e8340f5b292f0190057d7

8 years agoMerge branch 'master' into devel
SoonKyu Park [Wed, 27 Jul 2016 01:38:24 +0000 (10:38 +0900)]
Merge branch 'master' into devel

Change-Id: I09830eca415172d1e381ea737ab833ac0c757e43

8 years agoAdd change log and release information for Release 0.27.1 upstream_0.27.1
SoonKyu Park [Thu, 16 Jun 2016 09:14:38 +0000 (18:14 +0900)]
Add change log and release information for Release 0.27.1

Change-Id: I620035d4871df6cb31fe94121f060db6b17f2833

8 years agobump up to release 0.27.1 upstream/0.27.1
jianzhong.fang [Wed, 25 May 2016 07:01:28 +0000 (15:01 +0800)]
bump up to release 0.27.1

Change-Id: I3dba1b42fae23a1dbe37d8ff668fc97dd3ed76a4

8 years agoRemove BmapCreate and Filemap source code from MIC
jianzhong.fang [Tue, 17 May 2016 06:33:26 +0000 (14:33 +0800)]
Remove BmapCreate and Filemap source code from MIC

Change-Id: I1bcd94008d785fb82cb807b8678ce960cb6f1145