summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Kichan Kwon [Wed, 18 Oct 2017 00:58:37 +0000 (09:58 +0900)]
librui : check invalid frame count
Change-Id: Ide15d8f11bfc4c2ada4f2bdaf33bfe479a7f58bd
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Karol Lewandowski [Fri, 8 Dec 2017 09:53:02 +0000 (10:53 +0100)]
Fix possible null-pointer dereferences
Change-Id: Ifef7e0a02ee9c8a993dd060d51bb0a3420603f54
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Kunhoon Baik [Thu, 19 Oct 2017 11:44:19 +0000 (20:44 +0900)]
Remove unused vconf codes
Change-Id: Ib5e1d27e406183faa7facc86a30245e989fe1976
Sunmin Lee [Mon, 18 Sep 2017 11:16:07 +0000 (20:16 +0900)]
Mount inform partition at ramdisk-recovery
In case of using inform partition for reboot parameter,
the kernel requires inform path in ramdisk-recovery, too.
The inform partition should be mounted in recovery mode
to clean up reboot parameter properly at the end of each mode.
Change-Id: Ia955cf71b282d64e7e729a46d61259bf8bbd8cf3
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Paweł Szewczyk [Fri, 13 Oct 2017 12:25:22 +0000 (14:25 +0200)]
Add script for setting recovery action in configuration file
Change-Id: Iaabe92b731d39af19252e20b351f2293009091bf
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Mon, 16 Oct 2017 11:54:56 +0000 (13:54 +0200)]
rui: Fix menu description reset
Descriptions in submenus were reset to main menu value. This commit
fixes it.
Change-Id: I75e503d7cfd0515caa7a25956169cc892d6431aa
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Fri, 13 Oct 2017 11:51:23 +0000 (13:51 +0200)]
Exit after action
Change-Id: Ie2d1266e086c4523ad7ef7041102ef7f65d166f6
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Thu, 12 Oct 2017 14:01:39 +0000 (16:01 +0200)]
Read recovery action from file in /opt/
Change-Id: I11dadf1d89bf965b7a63aee712a5dfdecd765bf0
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Thu, 5 Oct 2017 15:20:02 +0000 (17:20 +0200)]
Do default action in RUI mode
Change-Id: I4ffd0b5b9a415498c1de1a0e15af205ada268a5d
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Karol Lewandowski [Fri, 13 Oct 2017 12:42:11 +0000 (14:42 +0200)]
init: Set PATH to sane value
Change-Id: I0598f285fac401d685e83700b420ba607b313731
Karol Lewandowski [Fri, 13 Oct 2017 10:50:06 +0000 (12:50 +0200)]
Drop standard directory symlinks from system-recovery.list
These symlinks are always guaranteed to be provided by
mkinitrd-recovery.sh.
Change-Id: Ib1e46967a09c43c6c79c564686705e6ef757b7a2
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Łukasz Stelmach [Thu, 12 Oct 2017 14:14:33 +0000 (16:14 +0200)]
Keep system-recovery.cfg on rootfs for reference
Change-Id: Idc659ed3828402afcc05bd89d291cb7ed24fbb27
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Karol Lewandowski [Fri, 13 Oct 2017 08:26:01 +0000 (10:26 +0200)]
Drop unneeded tools from image
These tools are no longer used and can be safely removed.
Change-Id: Ib3192bd2867011e1d008785fa09901281521e2d6
Karol Lewandowski [Fri, 13 Oct 2017 08:22:24 +0000 (10:22 +0200)]
init: Parse kernel command line without external tools
/proc/cmdline can be easily parsed using shell built-ins,
allowing to remove potentially unnecessary tools from image
(tr, cut, grep).
Change-Id: I2c971d3503700b2ca105773552e452ded4e65098
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Thu, 12 Oct 2017 15:00:31 +0000 (17:00 +0200)]
Fix bashisms in scripts
This commit fixes bashisms in the script itself to ensure these
can be correctly executed under any POSIX compliant Bourne Shell
(eg. dash(1))
Change-Id: I3efb4b91483a3948a9a3270c9783461bb5d53f92
Karol Lewandowski [Thu, 12 Oct 2017 11:44:55 +0000 (13:44 +0200)]
recovery-init: Always use blkid(1) to find partitions
blkid(1) was introduced to find partition based on fs
label for targets that do not support partlabel (eg. rpi3).
However, blkid(1) can also search using partlabel, so it's
the only utility it's needed to locate partitions.
This commit makes recovery-init always use blkid(1),
allowing partx(1) to be dropped.
Change-Id: Ie021210b3c9ff359d1b112d51479920c1ba55c38
Łukasz Stelmach [Mon, 25 Sep 2017 10:19:16 +0000 (12:19 +0200)]
More parametric paths (see
3f5af8f5)
Change-Id: Ib2699d1e1e685d4bec506dc561ca640e1924c739
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Karol Lewandowski [Fri, 6 Oct 2017 08:58:00 +0000 (10:58 +0200)]
mkinitrd-recovery: Fix incorrect library dependency verification
Without this commit dependencies for objects listed in MVWITHLIBS
were not correctly generated.
Change-Id: Ia7c99a6a6afbf8a83ef66c84da562ecbe7495d27
Karol Lewandowski [Fri, 6 Oct 2017 09:41:22 +0000 (11:41 +0200)]
init: Fix runtime gui/non-gui mode selection
Commit
b8e88cebfe ("Install system-recovery binary for both gui
& non-gui platforms") enabled installing system-recovery binary
for headless profile (in addition to headed). In result one
recovery-init script was installed, which included build-time
generated check if GUI is enabled or not.
This commit changes gui/non-gui checking to happen at run time
- based on what is actually available on initrd-recovery image.
GUI variant is preferred, and it will be selected by default -
however, if it's not available non-gui will be tried instead.
Change-Id: I4d07a9e0979c2cff980fa21f909aaba9aa828d2f
Karol Lewandowski [Fri, 29 Sep 2017 07:50:28 +0000 (09:50 +0200)]
Add forced reboot option to screen
Forced reboot by longrpressing confirm button can be now allowed for single screen in its configuration.
Change-Id: I2d1ce0ceafbb84be190bc5c4ffad2784319e0439
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
[ Removed no longer used recovery_rui_screen_id enum ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Fri, 29 Sep 2017 08:58:03 +0000 (10:58 +0200)]
Install system-recovery binary for both gui & non-gui platforms
Following changes were applied:
* system-recovery is build twice for gui & non-gui versions
* recovery-init is same for both gui & non-gui
It detects environment and exectues appropriate system-recovery binary.
* needless %post/pre scripts were removed
It should be enough to install differently named files directly from
package.
* additional code reorganization applied to source tree
Needed to separate gui & non-gui variants.
Change-Id: I13302d0cb5f441ef2a28d040599823f1503f61e3
Karol Lewandowski [Wed, 27 Sep 2017 14:21:53 +0000 (16:21 +0200)]
Drop dead code
Commit
f2a1870dd ("Parse configuration file") moved configuration
to files. This commit removes leftover unused code & defines.
Change-Id: Id5663185df0f9144be4822fd193f053cb5c29251
Karol Lewandowski [Fri, 29 Sep 2017 07:54:55 +0000 (09:54 +0200)]
Allow selecting headless action via tizen.recovery key in kernel command line
Change-Id: I6035a4ab1e99fbce64881bd6fe943355a67d5352
Paweł Szewczyk [Fri, 15 Sep 2017 10:44:43 +0000 (12:44 +0200)]
Handle headless action
Change-Id: Iae7568963986d017b4b75efd4a4bce197fb8a119
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Fri, 15 Sep 2017 10:13:14 +0000 (12:13 +0200)]
separate action handlers
Change-Id: I6aaefb5f030e5cc1bbadd0bc60269fe4c75e3e3c
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Łukasz Stelmach [Mon, 25 Sep 2017 10:41:11 +0000 (12:41 +0200)]
Fix logging marco name to fix build break
Change-Id: I623725fbe2cc698147de882f5181fc4b413b5784
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Paweł Szewczyk [Fri, 8 Sep 2017 12:32:06 +0000 (14:32 +0200)]
Parse configuration file
Get GUI gonfiguration from file and parse it using libconfig.
Change-Id: I682a81eee1bc1db038bf53b19981a533f48c6d44
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Fri, 15 Sep 2017 13:06:45 +0000 (15:06 +0200)]
Revert "Remove unnecessary shared log codes"
This reverts commit
be1e9a33516c14ccc5815c7e9584b00bbf785a52.
Change-Id: I20c04d58dc0833e72d8ce2a5e0dcfedd0fa669a6
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>
Ł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>
Ł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>
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>
Ł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>
Kunhoon Baik [Fri, 15 Sep 2017 05:09:34 +0000 (14:09 +0900)]
Remove unnecessary error message conversion.
Change-Id: I78415d5a941a22c947666cb6afe4dde65082e111
Kunhoon Baik [Fri, 15 Sep 2017 04:44:58 +0000 (13:44 +0900)]
Remove unnecessary shared log codes
Change-Id: I59fee7c49443637602a3bb533d8e5493f18436fa
Kunhoon Baik [Thu, 14 Sep 2017 10:20:15 +0000 (19:20 +0900)]
Apply Tizen Coding Convention & Solving Static Analysis issues
Change-Id: I154165c4320ef0c23e7152e0ae04e77b1f00ae92
Łukasz Stelmach [Tue, 29 Aug 2017 14:06:17 +0000 (14:06 +0000)]
Merge "Create .gitignore file" into tizen
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>
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>
Ł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>
Sunmin Lee [Tue, 22 Aug 2017 02:06:55 +0000 (02:06 +0000)]
Merge "Remove unused codes: mount blk partitions" into tizen
Sunmin Lee [Tue, 22 Aug 2017 02:06:42 +0000 (02:06 +0000)]
Merge "Support blkid also in mkinitrd script" into tizen
Sunmin Lee [Tue, 22 Aug 2017 02:06:27 +0000 (02:06 +0000)]
Merge "Remove awk dependency" into tizen
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>
Youngjae Shin [Mon, 21 Aug 2017 23:24:04 +0000 (08:24 +0900)]
revise installing a license file
Change-Id: I447784b66c35f0680a1b303d266e73c81bc33c8d
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>
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>
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
Ł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>
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
Sunmin Lee [Tue, 25 Jul 2017 23:10:33 +0000 (23:10 +0000)]
Merge "Divide system-recovery list file according to GUI" into tizen
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
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>
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>
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>
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>
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>
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>
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
Tizen Infrastructure [Wed, 31 May 2017 03:17:00 +0000 (03:17 +0000)]
Initial empty repository