From: wchang kim Date: Fri, 18 Aug 2017 05:51:55 +0000 (+0900) Subject: [Updating] Adding to modify model-config file. X-Git-Tag: submit/tizen/20170818.081859^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89815269a47656e490d302e19c875ffb02376da1;p=tools%2Fbuilding-blocks.git [Updating] Adding to modify model-config file. permitted to use posttrans. Added some model-config keys. Change-Id: I605dda647c20c456342d8ce6bae6bdc24fe6cd0d --- diff --git a/packaging/building-blocks.spec b/packaging/building-blocks.spec index 8b82bca..6cec9a7 100644 --- a/packaging/building-blocks.spec +++ b/packaging/building-blocks.spec @@ -3,7 +3,7 @@ %define debug_package %{nil} Name: building-blocks -Version: 0.0.1 +Version: 0.0.2 Release: 0 License: Apache-2.0 Summary: The Root of All Tizen Meta Packages (building blocks) diff --git a/packaging/platform-preset-boards.inc b/packaging/platform-preset-boards.inc index 3163797..2d22fb9 100644 --- a/packaging/platform-preset-boards.inc +++ b/packaging/platform-preset-boards.inc @@ -67,6 +67,17 @@ Conflicts: %{name}-sub1-Preset_boards-ARTIK_fullBSP %description sub1-Preset_boards-RPI3 Firstly select HALs and Feature to add to your image. %files sub1-Preset_boards-RPI3 +%posttrans sub1-Preset_boards-RPI3 +sed -i 's#\(\"tizen.org/system/platform.processor\".\+>\).\+\(\)#\1BCM2837\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/system/platform.communication_processor\".\+>\).\+\(\)#\1none\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.cpu.arch\".\+>\).\+\(\)#\1armv8\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.cpu.arch.armv7\".\+>\).\+\(\)#\1false\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.cpu.arch.armv8\".\+>\).\+\(\)#\1true\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.cpu.frequency\".\+>\).\+\(\)#\11200\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.fpu.arch\".\+>\).\+\(\)#\1vfpv4\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.fpu.arch.vfpv3\".\+>\).\+\(\)#\1false\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.fpu.arch.vfpv4\".\+>\).\+\(\)#\1true\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/profile\".\+>\).\+\(\)#\1common\2#' %{_sysconfdir}/config/model-config.xml ### RPI3-System ### @@ -74,7 +85,7 @@ Firstly select HALs and Feature to add to your image. Summary: System Requires: system-plugin-headless Requires: system-plugin-iot -Requires: model-config-rpi3-profile_common_iot_core +Requires: model-config-default %description sub2-Preset_boards-RPI3-System Packages for System HAL and Feature. They are mandatory. @@ -288,7 +299,17 @@ Conflicts: %{name}-sub1-Preset_boards-ARTIK_fullBSP %description sub1-Preset_boards-TM1 Firstly select HALs and Feature to add to your image. %files sub1-Preset_boards-TM1 - +%posttrans sub1-Preset_boards-TM1 +sed -i 's#\(\"tizen.org/system/platform.processor\".\+>\).\+\(\)#\1SC7727S\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/system/platform.communication_processor\".\+>\).\+\(\)#\1SC7727S\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.cpu.arch\".\+>\).\+\(\)#\1armv7\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.cpu.arch.armv7\".\+>\).\+\(\)#\1true\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.cpu.arch.armv8\".\+>\).\+\(\)#\1false\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.cpu.frequency\".\+>\).\+\(\)#\11300\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.fpu.arch\".\+>\).\+\(\)#\1vfpv3\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.fpu.arch.vfpv3\".\+>\).\+\(\)#\1true\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/platform.core.fpu.arch.vfpv4\".\+>\).\+\(\)#\1false\2#' %{_sysconfdir}/config/model-config.xml +sed -i 's#\(\"tizen.org/feature/profile\".\+>\).\+\(\)#\1mobile\2#' %{_sysconfdir}/config/model-config.xml ### TM1-System ### %package sub2-Preset_boards-TM1-System diff --git a/rule_checker.py b/rule_checker.py index 459e32b..8658c3d 100755 --- a/rule_checker.py +++ b/rule_checker.py @@ -399,7 +399,7 @@ def ruleCheckInc(file): continue # Check for not allowed sections - if re.search(r'^\s*(%post)|(%pre)|(%build)|(%clean)|(%install)', line): + if re.search(r'^\s*(%post(?!trans))|(%pre)|(%build)|(%clean)|(%install)', line): error += 1 print( "ERROR: It is not allowed to add such sections in each domain.")