From: wchang kim Date: Thu, 16 Jul 2020 04:24:39 +0000 (+0900) Subject: Adding the target to make sdk extension to Makefile X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ddd7efc85b539f8d1f167bebc08edc871865ee4;p=tools%2Ftbb.git Adding the target to make sdk extension to Makefile Change-Id: Ia51cd0337e0228157bc8d0fd2e1a6bf979cead14 --- diff --git a/.defconfig b/.defconfig index 3aed999..15eafc9 100644 --- a/.defconfig +++ b/.defconfig @@ -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 diff --git a/Config.in b/Config.in index d600301..dfe68ab 100644 --- 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" diff --git a/Makefile b/Makefile index 36c019d..8fc75d9 100644 --- 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) diff --git a/README.md b/README.md index efed962..fab897f 100644 --- 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 diff --git a/support/scripts/make_image.sh b/support/scripts/make_image.sh index 348edd5..eadfc2d 100755 --- a/support/scripts/make_image.sh +++ b/support/scripts/make_image.sh @@ -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