platform/core/system/initrd-recovery.git
6 years agoMove definition of several directory paths to configure.ac 73/145173/6
Paweł Szewczyk [Wed, 13 Sep 2017 12:16:20 +0000 (14:16 +0200)]
Move definition of several directory paths to configure.ac

Define directories where data and programmes are installed in
configure.ac and refer to those values in scripts and programmes.

Move executable programmes and scripts from /usr/lib to /usr/libexec.

Change-Id: Ibef97c88497d9d5b56b4a9a1eb3ea333927b7df3
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 years agoInstall TDM/TBM adaptation libraries on the spreadtrum platform 84/148284/5
Łukasz Stelmach [Thu, 7 Sep 2017 08:45:04 +0000 (10:45 +0200)]
Install TDM/TBM adaptation libraries on the spreadtrum platform

Change-Id: I290efc5323a4f77f8d7a8137597e5269266f8761
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 years agolibrui: Draw UI using libtdm/libtbm 35/146635/9
Łukasz Stelmach [Tue, 12 Sep 2017 14:17:14 +0000 (16:17 +0200)]
librui: Draw UI using libtdm/libtbm

Change-Id: I0fc2525539e17394de932e668a30f98717bc544f
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
[ Applied Tizen Coding style ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
6 years agolibrui: Make color handling component-order independent 06/149606/5
Karol Lewandowski [Fri, 15 Sep 2017 10:50:13 +0000 (12:50 +0200)]
librui: Make color handling component-order independent

Change-Id: I68e4aff7d7bb358d2db176515d510a87fe93b007
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
[ Applied Tizen Coding style ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
6 years agolibrui: Exit event loop upon INT signal 34/146634/7
Łukasz Stelmach [Tue, 29 Aug 2017 12:52:40 +0000 (14:52 +0200)]
librui: Exit event loop upon INT signal

Change-Id: I93fc569ef2b2f482553a0acd8243278a69625a77
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
[ Applied Tizen Coding style ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
6 years agoRemove unnecessary error message conversion. 08/150308/1
Kunhoon Baik [Fri, 15 Sep 2017 05:09:34 +0000 (14:09 +0900)]
Remove unnecessary error message conversion.

Change-Id: I78415d5a941a22c947666cb6afe4dde65082e111

6 years agoRemove unnecessary shared log codes 99/150299/1
Kunhoon Baik [Fri, 15 Sep 2017 04:44:58 +0000 (13:44 +0900)]
Remove unnecessary shared log codes

Change-Id: I59fee7c49443637602a3bb533d8e5493f18436fa

6 years agoApply Tizen Coding Convention & Solving Static Analysis issues 30/150130/3
Kunhoon Baik [Thu, 14 Sep 2017 10:20:15 +0000 (19:20 +0900)]
Apply Tizen Coding Convention & Solving Static Analysis issues

Change-Id: I154165c4320ef0c23e7152e0ae04e77b1f00ae92

6 years agoMerge "Create .gitignore file" into tizen submit/tizen_4.0/20170830.025641
Łukasz Stelmach [Tue, 29 Aug 2017 14:06:17 +0000 (14:06 +0000)]
Merge "Create .gitignore file" into tizen

6 years agoNew package: reboot-param-helper 97/146297/2 accepted/tizen/4.0/unified/20170904.143553 accepted/tizen/unified/20170830.160709 submit/tizen/20170828.072518 submit/tizen_4.0/20170901.015617
Sunmin Lee [Mon, 28 Aug 2017 01:43:31 +0000 (10:43 +0900)]
New package: reboot-param-helper

Reboot parameter is a necessary function for recovery/upgrade.
However, some targets do not support for this like inform register.
For these targets, introduce inform partition for reboot parameter.

Change-Id: I658409dc83933b3e7511402c88f2b67bffa3312b
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoRelease version 0.1.3 40/145440/1 accepted/tizen/unified/20170824.050914 submit/tizen/20170823.081423
Sunmin Lee [Tue, 22 Aug 2017 08:55:53 +0000 (17:55 +0900)]
Release version 0.1.3

Below patches were merged:
- Remove awk dependency
- Support blkid also in mkinitrd script
- Remove unused codes: mount blk partitions

Change-Id: I204c24c3a0d361aeaf0b95f7fb9c66404cad1431
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoCreate .gitignore file 72/145172/2
Łukasz Stelmach [Mon, 21 Aug 2017 12:01:37 +0000 (14:01 +0200)]
Create .gitignore file

Change-Id: I9e0db6d814472fad7064b71185da65a897922ce0
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 years agoMerge "Remove unused codes: mount blk partitions" into tizen
Sunmin Lee [Tue, 22 Aug 2017 02:06:55 +0000 (02:06 +0000)]
Merge "Remove unused codes: mount blk partitions" into tizen

6 years agoMerge "Support blkid also in mkinitrd script" into tizen
Sunmin Lee [Tue, 22 Aug 2017 02:06:42 +0000 (02:06 +0000)]
Merge "Support blkid also in mkinitrd script" into tizen

6 years agoMerge "Remove awk dependency" into tizen
Sunmin Lee [Tue, 22 Aug 2017 02:06:27 +0000 (02:06 +0000)]
Merge "Remove awk dependency" into tizen

6 years agoRemove unused codes: mount blk partitions 35/145235/1
Sunmin Lee [Tue, 22 Aug 2017 00:16:48 +0000 (09:16 +0900)]
Remove unused codes: mount blk partitions

initrd-recovery doesn't mount block partitions in main
operation. Remove unused codes from init script.

Change-Id: I1a6d7683b3648ec8aff9a329a132cf717c10af72
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agorevise installing a license file 13/145213/1
Youngjae Shin [Mon, 21 Aug 2017 23:24:04 +0000 (08:24 +0900)]
revise installing a license file

Change-Id: I447784b66c35f0680a1b303d266e73c81bc33c8d

6 years agoSupport blkid also in mkinitrd script 48/144348/2
Sunmin Lee [Wed, 16 Aug 2017 09:19:59 +0000 (18:19 +0900)]
Support blkid also in mkinitrd script

mkinitrd-recovery refers to partition info when it called
in target. For the target without partx, this script also
supports same operation using blkid.

Change-Id: I7828f9bcf0c7ae219739c509226ae4349fe845a5
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoRemove awk dependency 92/143592/3
Sunmin Lee [Thu, 10 Aug 2017 11:39:33 +0000 (20:39 +0900)]
Remove awk dependency

To be optimized, get awk package out of initrd-recovery.
So, make the same code using coreutil commands instead of awk.

Change-Id: Id8fd9124e1ce5b4d08468f39c5fad6d144957188
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoAdd new file copy mode for recovery patition - MVWITHLIBS 34/143234/3
Kunhoon Baik [Wed, 9 Aug 2017 06:53:02 +0000 (15:53 +0900)]
Add new file copy mode for recovery patition - MVWITHLIBS

To reduce rootfs size, we need to erase some redundant files.
Especially, files used in just recovery partition should be removed from rootfs.

Until now, the existing file copy mode of current recovery partition creation support followings.
1) Symlink creation in just recovery partition
2) Copy binary with related lib (related lib is copied)
3) Copy just the binary without related lib
               :

However, there are no copy mode - Move binary with related lib (related lib is copied)
If recovery partition has such copy mode, some binary can be removed from rootfs.

This patch supports such requirement, and modify existing scripts

Change-Id: Ib995794e2cba798093b0ccfb859037ccb0f07c06

6 years agoBuild GUI and non-GUI binaries without copying source files 38/141838/1 submit/tizen/20170802.055040
Łukasz Stelmach [Tue, 1 Aug 2017 14:52:46 +0000 (16:52 +0200)]
Build GUI and non-GUI binaries without copying source files

Change-Id: I82e4d24b44b5039091f8f0e06a4c094718bd8165
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 years agoFix Second Framebuffer's position calculation 39/140339/2 accepted/tizen/4.0/unified/20170816.011311 accepted/tizen/4.0/unified/20170829.020350 accepted/tizen/unified/20170802.150910 submit/tizen/20170731.233847 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004
Kunhoon Baik [Mon, 24 Jul 2017 14:12:00 +0000 (23:12 +0900)]
Fix Second Framebuffer's position calculation

System recovery uses double framebuffer when frame buffer backend is enabled.
The second framebuffer should be correctly calcualted with fix.line_length because it is real size of row buffer.
Thus, for correct calculation, this patch get fixed screen from kernel with FBIOGET_FSCREENINFO ioctl.

Change-Id: I3f4640ec60e2db24724a551e1b5f510c2d2791db

6 years agoMerge "Divide system-recovery list file according to GUI" into tizen
Sunmin Lee [Tue, 25 Jul 2017 23:10:33 +0000 (23:10 +0000)]
Merge "Divide system-recovery list file according to GUI" into tizen

6 years agoAdd ls/agetty for basic debugging 61/140261/1
Kunhoon Baik [Mon, 24 Jul 2017 08:33:12 +0000 (17:33 +0900)]
Add ls/agetty for basic debugging

This commit is for basic debugging by serial.
This patch will be reverted on release.

Change-Id: I8831ae36b0746cb605e97dcf08d3ef633a9995a9

6 years agoDivide system-recovery list file according to GUI 62/139262/1
Sunmin Lee [Tue, 18 Jul 2017 06:23:28 +0000 (15:23 +0900)]
Divide system-recovery list file according to GUI

The list files of system-recovery are different
according to the existence of GUI feature.
They should be packaged separately (gui/non_gui).

Change-Id: Ie9ebf1f59cd8531e80fb70a8ad2ee43fc1c34ddb
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoBLKID for PARTX not supported target 81/133281/7 accepted/tizen/unified/20170717.172321 submit/tizen/20170714.080717
Sunmin Lee [Mon, 19 Jun 2017 06:12:35 +0000 (15:12 +0900)]
BLKID for PARTX not supported target

In case of no partition name in some profile,
it can not get block device path properly.

BLKID, could be the substitution of PARTX.
BLKID would be used in case of some targets
that PARTX is not supported.

Change-Id: I910eda4ab59e760e35ea36addab8abd92fa08ec9
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoSupport unified build 45/132845/4
Sunmin Lee [Fri, 2 Jun 2017 01:59:27 +0000 (10:59 +0900)]
Support unified build

To support unified build, make separate packages
at once by single gbs command.

Change-Id: Ie38ba9b07a88ca4cdc172283bfbe3e7ba132fda4
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoMake RECOVERY_GUI configurable 83/132183/3
Sunmin Lee [Thu, 1 Jun 2017 10:35:09 +0000 (19:35 +0900)]
Make RECOVERY_GUI configurable

According to profile, gui util would not be built and pacakged.
However, RECOVERY_GUI always had been set to "GUI" so
make recovery-init to call gui util.
This patch makes RECOVERY_GUI configurable according to current profile.

Change-Id: Ia7017d099b1e4805162074a3b0ef772c5cbf1e45
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoRemove kernel header dependency 33/131933/3
Sunmin Lee [Wed, 31 May 2017 08:19:01 +0000 (17:19 +0900)]
Remove kernel header dependency

It does not need to require specific kernel header.
Instead of this, use default glib-devel package.

Change-Id: Ife55b3b7931a23a296748bc47a913ed9e1490c99
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoRemove libsystem dependency 32/131932/3
Sunmin Lee [Wed, 31 May 2017 05:35:17 +0000 (14:35 +0900)]
Remove libsystem dependency

To simplify package dependency,
get required functions from libsystem and include in itself.

Change-Id: I0020415027cccdc6c501294e9edb17cba7e03ecc
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoUpload initial codes 07/132907/2
Kunhoon Baik [Thu, 8 Jun 2017 08:29:30 +0000 (17:29 +0900)]
Upload initial codes

Copied & Modified initial codes of initrd-recovery from reference repository

Change-Id: I9dc5af97ddf356b96e21fa73e5f375bafacf333c

7 years agoInitial empty repository master
Tizen Infrastructure [Wed, 31 May 2017 03:17:00 +0000 (03:17 +0000)]
Initial empty repository