Adding the target to make sdk extension to Makefile 42/238642/2
authorwchang kim <wchang.kim@samsung.com>
Thu, 16 Jul 2020 04:24:39 +0000 (13:24 +0900)
committerwchang kim <wchang.kim@samsung.com>
Thu, 16 Jul 2020 08:43:50 +0000 (17:43 +0900)
Change-Id: Ia51cd0337e0228157bc8d0fd2e1a6bf979cead14

.defconfig
Config.in
Makefile
README.md
support/scripts/make_image.sh

index 3aed99937318a3481dd89baa509e7745701244e3..15eafc94a4ca4dd27893ed0942f77344d42485f2 100644 (file)
@@ -3,9 +3,11 @@
 # Tizen Building Block 20171210.1 Configuration
 #
 #TBB_INFO_PLATFORM_VERSION_4.0=y
-TBB_INFO_PLATFORM_VERSION_5.0=y
+#TBB_INFO_PLATFORM_VERSION_5.0=y
+TBB_INFO_PLATFORM_VERSION_6.0=y
 TBB_INFO_SNAPSHOT_ID="latest"
 TBB_INFO_IMAGE_NAME="tizen-iot-img"
+TBB_INFO_PROFILE_NAME="tizeniot"
 TBB_SET_no_board=y
 # building-blocks-sub1-Preset_boards-ARTIK530 is not set
 # building-blocks-sub1-Preset_boards-RPI3 is not set
index d600301bda1bbd2d98538ff016c374054bb1a129..dfe68ab568e5645b155e4c1f8490cb251ff6289b 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -28,8 +28,13 @@ config TBB_INFO_IMAGE_NAME
        string "Image Name"
        default "tizen-iot-img"
 
-source "board/Config.in"
+config TBB_INFO_PROFILE_NAME
+       string "Profile Name"
+       default "tizeniot"
+       help
+               You must use only alphabet and "-".
 
+source "board/Config.in"
 if !TBB_SET_no_board
 source "partition/Config.in"
 
index 36c019d2cfe5df2300db4c4220c12dfadefbd1c6..8fc75d9ff3e33cba7778d9bbdec6b32dbb9c1d52 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,24 @@ all:
        @$(TIC_CONFIG_ENV) $(TOPDIR)/support/scripts/make_image.sh
 endif
 
+.ONESHELL: # Only applies to configsdk target
+configsdk:
+ifeq ($(wildcard $(INFO_DIR)/.bb_list.txt),)
+       @echo "Please make a image firstly..."
+else
+       @cd $(TOPDIR)/config-sdk
+       @echo "$(INFO_DIR)/.bb_list.txt|$(TBB_INFO_IMAGE_NAME)|$(TBB_INFO_PLATFORM_VERSION)"
+       @$(TIC_CONFIG_ENV) ./make_extension.sh $(INFO_DIR)/.bb_list.txt $(TBB_INFO_PROFILE_NAME) $(TBB_PLATFORM_VERSION)
+       @cd $(TOPDIR)
+endif
+
+.ONESHELL: # Only applies to configsdk target
+cleansdk:
+       @cd $(TOPDIR)/config-sdk
+       ./clean_data.sh
+       @cd $(TOPDIR)
+
+
 HOSTCC := gcc
 
 $(BUILD_DIR)/buildroot-config/%onf:
@@ -80,6 +98,7 @@ printvars:
 
 clean:
        rm -rf $(BUILD_DIR) $(INFO_DIR)
+       make cleansdk
 
 distclean: clean
        rm -rf $(BASE_DIR)
index efed96251b9e8f4b165c943b7f74f201527de123..fab897fcfb49477443bb0964f3aebccd21ff54d0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -63,7 +63,7 @@ Connected to internet (download.tizen.org)
 1. Cleanning configurations and build output
 - make distclean
 
-2. Cleanning build output
+2. Cleanning build output & sdk extension
 - make clean
 
 3. Selecting configurations
@@ -72,13 +72,15 @@ Connected to internet (download.tizen.org)
 4. Making a image (After selecting configurations)
 - make
 
-5. Saving a configuration file (After selection configurations)
+5. Making a sdk extension (After making a image)
+- make configsdk
+
+6. Saving a configuration file (After selection configurations)
 - cp .config configs/xxx_defconfig
 - xxx : configuration name
 
-6. Loading a configuration
+7. Loading a configuration
 - make xxx_defconfig
 
-
-7. Help
+8. Help
 - make help
index 348edd59203f12f027dd007e71fcd56a93319a8b..eadfc2dbf35a190e544bbe2c1e0b4394ebd527b2 100755 (executable)
@@ -184,7 +184,7 @@ fi
 
 ########## function : downlading & update partition ##########
 PART_FILE=common-3parts-ramdisk-recovery
-PART_LOC=https://git.tizen.org/cgit/profile/common/meta/plain/partitions/common-3parts-ramdisk-recovery?h=tizen_5.0
+PART_LOC=https://git.tizen.org/cgit/profile/common/meta/plain/partitions/common-3parts-ramdisk-recovery?h=tizen
 download_update_partition() {
        if [ ! -e $DOWNDIR/$PART_FILE ]
        then