Skip to contentSkip to conversation

tisdk-image.bbclass: update for the new rootfs/image infrastructure

PATCH In review Denys Dmytriyenko 4 participants 7 messages Jul 1, 2014 – Jul 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tisdk-image.bbclass: update for the new rootfs/image infrastructure

From: Denys Dmytriyenko <[email protected]>

The entire rootfs/image processing infrastructure was rewritten in Python for Daisy release. Since tisdk_image class is based on rootfs/image base classes and uses their APIs, some adjustments are required in order for it to work.

---
 meta-arago-distro/classes/tisdk-image.bbclass | 83 +++++++++++++--------------
 1 file changed, 39 insertions(+), 44 deletions(-)
meta-arago-distro/classes/tisdk-image.bbclass +39 -44
index b100261..6023d6b 100644
@@ -65,18 +65,18 @@ def string_set(iterable):
 
 # Add a dependency for the do_rootfs function that will force us to build
 # the TARGET_IMAGES first so that they will be available for packaging.
-do_sdk_image[depends] += "${@string_set('%s:do_rootfs' % pn for pn in (d.getVar("TARGET_IMAGES", True) or "").split())}"
+do_rootfs[depends] += "${@string_set('%s:do_rootfs' % pn for pn in (d.getVar("TARGET_IMAGES", True) or "").split())}"
 
 # Add a dependency for the do_populate_sdk function of the TIDSK_TOOLCHAIN
 # variable which will force us to build the toolchain first so that it will be
 # available for packaging
-do_sdk_image[depends] += "${@string_set('%s:do_populate_sdk' % pn for pn in (d.getVar("TISDK_TOOLCHAIN", True) or "").split())}"
+do_rootfs[depends] += "${@string_set('%s:do_populate_sdk' % pn for pn in (d.getVar("TISDK_TOOLCHAIN", True) or "").split())}"
 
-do_sdk_image[nostamp] = "1"
-do_sdk_image[lockfiles] += "${IMAGE_ROOTFS}.lock"
-do_sdk_image[cleandirs] += "${S}"
+do_rootfs[nostamp] = "1"
+do_rootfs[lockfiles] += "${IMAGE_ROOTFS}.lock"
+do_rootfs[cleandirs] += "${S}"
 
-# Call the cleanup_host_packes to remove packages that should be removed from
+# Call the cleanup_host_packages to remove packages that should be removed from
 # the host for various reasons.  This may include licensing issues as well.
 OPKG_POSTPROCESS_COMMANDS = "cleanup_host_packages; "
 
@@ -92,25 +92,6 @@ cleanup_host_packages() {
     fi
 }
 
-# Copy log_check from image.bbclass since the rootfs_ipk_do_rootfs function
-# uses it, but we are not inheriting the full image class.
-log_check() {
-	for target in $*
-	do
-		lf_path="${WORKDIR}/temp/log.do_$target.${PID}"
-		
-		echo "log_check: Using $lf_path as logfile"
-		
-		if test -e "$lf_path"
-		then
-			${IMAGE_PKGTYPE}_log_check $target $lf_path
-		else
-			echo "Cannot find logfile [$lf_path]"
-		fi
-		echo "Logfile is clean"
-	done
-}
-
 # Generate the header for a TI style software manifest
 sw_manifest_header() {
 echo "
@@ -235,7 +216,7 @@ echo "
 
 # Create the host side toolchain components table
 sw_manifest_toolchain_host() {
-    opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-*-linux/var/lib/opkg/info"
+    opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-*-linux/var/lib/opkg"
 
 echo "
 <h2><u>GPLv3 Development Host Content</u></h2>
@@ -471,24 +452,43 @@ generate_sw_manifest() {
     sw_manifest_footer
 }
 
+ROOTFS_PREPROCESS_COMMAND += "tisdk_image_setup; "
+ROOTFS_POSTPROCESS_COMMAND += "tisdk_image_build; "
+IMAGE_PREPROCESS_COMMAND += "tisdk_image_cleanup; "
+
 # Create the SDK image.  We will re-use the rootfs_ipk_do_rootfs functionality
 # to install a given list of packages using opkg.
-do_sdk_image () {
-	set -x
-	rm -rf ${IMAGE_ROOTFS}
-	mkdir -p ${IMAGE_ROOTFS}
-	mkdir -p ${DEPLOY_DIR_IMAGE}
+fakeroot python do_rootfs () {
+    from oe.rootfs import create_rootfs
+    from oe.image import create_image
+    from oe.manifest import create_manifest
+
+    # generate the initial manifest
+    create_manifest(d)
+
+    # generate rootfs
+    create_rootfs(d)
+
+    # generate final images
+    create_image(d)
+}
+
+tisdk_image_setup () {
+    set -x
+    rm -rf ${IMAGE_ROOTFS}
+    mkdir -p ${IMAGE_ROOTFS}
+    mkdir -p ${DEPLOY_DIR_IMAGE}
 
-	mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/var/lib/opkg
 
     chmod 755 ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-tisdk*
 
     # Temporarily extract the toolchain sdk so we can read license information from it.
     echo "${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}" | ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-tisdk*
+}
 
-    # Creat the base SDK image
-	rootfs_${IMAGE_PKGTYPE}_do_rootfs
-
+tisdk_image_build () {
     mkdir -p ${IMAGE_ROOTFS}/filesystem
 
     # Copy the TARGET_IMAGES to the sdk image before packaging
@@ -607,23 +607,18 @@ do_sdk_image () {
 
     # Copy the opkg.conf used by the image to allow for future updates
     cp ${WORKDIR}/opkg.conf ${IMAGE_ROOTFS}/etc/
+}
 
+tisdk_image_cleanup () {
     # Move the var/etc directories which contains the opkg data used for the
     # manifest (and maybe one day for online updates) to a hidden directory.
     mv ${IMAGE_ROOTFS}/var ${IMAGE_ROOTFS}/.var
     mv ${IMAGE_ROOTFS}/etc ${IMAGE_ROOTFS}/.etc
-
-    # Create the image directory symlinks
-    # $ { @ get_imagecmds(d) }
 }
 
 license_create_manifest() {
     :
 }
 
-rootfs_install_complementary() {
-    :
-}
-
-EXPORT_FUNCTIONS do_sdk_image
-addtask sdk_image before do_build after do_install
+EXPORT_FUNCTIONS do_rootfs
+addtask rootfs before do_build after do_install
Signature · 1 line
2.0.0
Acked-by on v1 1/1
#1 lore raw

Thanks for this!

Quoted 183 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 01, 2014 2:20 PM
To: [email protected]
Subject: [meta-arago] [PATCH] tisdk-image.bbclass: update for the new rootfs/image infrastructure

From: Denys Dmytriyenko <[email protected]>

The entire rootfs/image processing infrastructure was rewritten in Python for Daisy release. Since tisdk_image class is based on rootfs/image base classes and uses their APIs, some adjustments are required in order for it to work.

---
 meta-arago-distro/classes/tisdk-image.bbclass | 83 +++++++++++++--------------
 1 file changed, 39 insertions(+), 44 deletions(-)
meta-arago- renamed from meta-arago-distro/classes/tisdk-image.bbclass +0 -0

distro/classes/tisdk-image.bbclass
index b100261..6023d6b 100644

meta-arago-distro/classes/tisdk-image.bbclass +0 -0
@@ -65,18 +65,18 @@ def string_set(iterable):
 
 # Add a dependency for the do_rootfs function that will force us to build  #

the TARGET_IMAGES first so that they will be available for packaging. -do_sdk_image[depends] += "${@string_set('%s:do_rootfs' % pn for pn in (d.getVar("TARGET_IMAGES", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_rootfs' % pn for pn in (d.getVar("TARGET_IMAGES", True) or "").split())}"

# Add a dependency for the do_populate_sdk function of the
TIDSK_TOOLCHAIN # variable which will force us to build the toolchain first so that it will be # available for packaging -do_sdk_image[depends] += "${@string_set('%s:do_populate_sdk' % pn for pn in (d.getVar("TISDK_TOOLCHAIN", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_populate_sdk' % pn for pn in (d.getVar("TISDK_TOOLCHAIN", True) or "").split())}"

meta-arago-distro/classes/tisdk-image.bbclass +3 -4
-do_sdk_image[nostamp] = "1"
-do_sdk_image[lockfiles] += "${IMAGE_ROOTFS}.lock"
-do_sdk_image[cleandirs] += "${S}"
+do_rootfs[nostamp] = "1"
+do_rootfs[lockfiles] += "${IMAGE_ROOTFS}.lock"
+do_rootfs[cleandirs] += "${S}"
 
-# Call the cleanup_host_packes to remove packages that should be removed

from

meta-arago-distro/classes/tisdk-image.bbclass +2 -20
+# Call the cleanup_host_packages to remove packages that should be
+removed from
 # the host for various reasons.  This may include licensing issues as well.
 OPKG_POSTPROCESS_COMMANDS = "cleanup_host_packages; "
@@ -92,25 +92,6 @@ cleanup_host_packages() {
     fi
 }
 
-# Copy log_check from image.bbclass since the rootfs_ipk_do_rootfs function
-# uses it, but we are not inheriting the full image class.
-log_check() {
-	for target in $*
-	do
-		lf_path="${WORKDIR}/temp/log.do_$target.${PID}"
-
-		echo "log_check: Using $lf_path as logfile"
-
-		if test -e "$lf_path"
-		then
-			${IMAGE_PKGTYPE}_log_check $target $lf_path
-		else
-			echo "Cannot find logfile [$lf_path]"
-		fi
-		echo "Logfile is clean"
-	done
-}
-
 # Generate the header for a TI style software manifest
 sw_manifest_header() {
 echo "
@@ -235,7 +216,7 @@ echo "
 
 # Create the host side toolchain components table
 sw_manifest_toolchain_host() {
-    opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-*-

linux/var/lib/opkg/info"
+ opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-*-
linux/var/lib/opkg"

echo "
<h2><u>GPLv3 Development Host Content</u></h2> @@ -471,24 +452,43
@@ generate_sw_manifest() {
sw_manifest_footer
}

meta-arago-distro/classes/tisdk-image.bbclass +4 -0
+ROOTFS_PREPROCESS_COMMAND += "tisdk_image_setup; "
+ROOTFS_POSTPROCESS_COMMAND += "tisdk_image_build; "
+IMAGE_PREPROCESS_COMMAND += "tisdk_image_cleanup; "
+
 # Create the SDK image.  We will re-use the rootfs_ipk_do_rootfs

functionality # to install a given list of packages using opkg.

meta-arago-distro/classes/tisdk-image.bbclass +22 -6
-do_sdk_image () {
-	set -x
-	rm -rf ${IMAGE_ROOTFS}
-	mkdir -p ${IMAGE_ROOTFS}
-	mkdir -p ${DEPLOY_DIR_IMAGE}
+fakeroot python do_rootfs () {
+    from oe.rootfs import create_rootfs
+    from oe.image import create_image
+    from oe.manifest import create_manifest
+
+    # generate the initial manifest
+    create_manifest(d)
+
+    # generate rootfs
+    create_rootfs(d)
+
+    # generate final images
+    create_image(d)
+}
+
+tisdk_image_setup () {
+    set -x
+    rm -rf ${IMAGE_ROOTFS}
+    mkdir -p ${IMAGE_ROOTFS}
+    mkdir -p ${DEPLOY_DIR_IMAGE}
 
-	mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/var/lib/opkg
 
     chmod 755 ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-

${TARGET_OS}-tisdk*

# Temporarily extract the toolchain sdk so we can read license information
from it.

     echo "${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}" |

${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-tisdk*

meta-arago-distro/classes/tisdk-image.bbclass +2 -3
+}
 
-    # Creat the base SDK image
-	rootfs_${IMAGE_PKGTYPE}_do_rootfs
-
+tisdk_image_build () {
     mkdir -p ${IMAGE_ROOTFS}/filesystem
 
     # Copy the TARGET_IMAGES to the sdk image before packaging @@ -

607,23 +607,18 @@ do_sdk_image () {

# Copy the opkg.conf used by the image to allow for future updates cp ${WORKDIR}/opkg.conf ${IMAGE_ROOTFS}/etc/

meta-arago-distro/classes/tisdk-image.bbclass +4 -10
+}
 
+tisdk_image_cleanup () {
     # Move the var/etc directories which contains the opkg data used for the
     # manifest (and maybe one day for online updates) to a hidden directory.
     mv ${IMAGE_ROOTFS}/var ${IMAGE_ROOTFS}/.var
     mv ${IMAGE_ROOTFS}/etc ${IMAGE_ROOTFS}/.etc
-
-    # Create the image directory symlinks
-    # $ { @ get_imagecmds(d) }
 }
 
 license_create_manifest() {
     :
 }
 
-rootfs_install_complementary() {
-    :
-}
-
-EXPORT_FUNCTIONS do_sdk_image
-addtask sdk_image before do_build after do_install
+EXPORT_FUNCTIONS do_rootfs
+addtask rootfs before do_build after do_install
--

2.0.0

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#2 lore raw
Quoted 133 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Tuesday, July 01, 2014 4:10 PM
To: Denys Dmytriyenko; [email protected]
Subject: Re: [meta-arago] [PATCH] tisdk-image.bbclass: update for the new rootfs/image infrastructure

Thanks for this!

Quoted 6 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 01, 2014 2:20 PM
To: [email protected]
Subject: [meta-arago] [PATCH] tisdk-image.bbclass: update for

the new

Quoted 5 lines

rootfs/image infrastructure

From: Denys Dmytriyenko <[email protected]>

The entire rootfs/image processing infrastructure was rewritten

in Python for

Quoted 1 line

Daisy release. Since tisdk_image class is based on rootfs/image

base classes

Quoted 1 line

and uses their APIs, some adjustments are required in order for

it to work.

Quoted 4 lines
---
 meta-arago-distro/classes/tisdk-image.bbclass | 83

+++++++++++++--------------

Review

Quoted 3 lines
 1 file changed, 39 insertions(+), 44 deletions(-)
(quoted diff) +0 -0

b/meta-arago-

meta-arago-distro/classes/tisdk-image.bbclass def string_set(iterable): · line 66

Quoted 7 lines

distro/classes/tisdk-image.bbclass
index b100261..6023d6b 100644

meta-arago-distro/classes/tisdk-image.bbclass +0 -0
@@ -65,18 +65,18 @@ def string_set(iterable):
 
 # Add a dependency for the do_rootfs function that will force

us to build #

Quoted 1 line

the TARGET_IMAGES first so that they will be available for

packaging.

Quoted 1 line

-do_sdk_image[depends] += "${@string_set('%s:do_rootfs' % pn for

pn in

Quoted 2 lines

(d.getVar("TARGET_IMAGES", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_rootfs' % pn for pn

in

Quoted 4 lines

(d.getVar("TARGET_IMAGES", True) or "").split())}"

# Add a dependency for the do_populate_sdk function of the
TIDSK_TOOLCHAIN # variable which will force us to build the

toolchain first so

Quoted 1 line

that it will be # available for packaging -

do_sdk_image[depends] +=

Quoted 3 lines

"${@string_set('%s:do_populate_sdk' % pn for pn in (d.getVar("TISDK_TOOLCHAIN", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_populate_sdk' % pn

for pn in

meta-arago-distro/classes/tisdk-image.bbclass def string_set(iterable):

Quoted 10 lines

(d.getVar("TISDK_TOOLCHAIN", True) or "").split())}"

meta-arago-distro/classes/tisdk-image.bbclass +3 -4
-do_sdk_image[nostamp] = "1"
-do_sdk_image[lockfiles] += "${IMAGE_ROOTFS}.lock"
-do_sdk_image[cleandirs] += "${S}"
+do_rootfs[nostamp] = "1"
+do_rootfs[lockfiles] += "${IMAGE_ROOTFS}.lock"
+do_rootfs[cleandirs] += "${S}"
 
-# Call the cleanup_host_packes to remove packages that should

be removed

Quoted 2 lines

from
+# Call the cleanup_host_packages to remove packages that should

be

Quoted 2 lines

+removed from

 # the host for various reasons.  This may include licensing

issues as well.

meta-arago-distro/classes/tisdk-image.bbclass cleanup_host_packages() { · line 95

Quoted 7 lines

OPKG_POSTPROCESS_COMMANDS = "cleanup_host_packages; "

meta-arago-distro/classes/tisdk-image.bbclass +0 -1
@@ -92,25 +92,6 @@ cleanup_host_packages() {
     fi
 }
 
-# Copy log_check from image.bbclass since the

rootfs_ipk_do_rootfs function

Quoted 22 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -18
-# uses it, but we are not inheriting the full image class.
-log_check() {
-	for target in $*
-	do
-		lf_path="${WORKDIR}/temp/log.do_$target.${PID}"
-
-		echo "log_check: Using $lf_path as logfile"
-
-		if test -e "$lf_path"
-		then
-			${IMAGE_PKGTYPE}_log_check $target $lf_path
-		else
-			echo "Cannot find logfile [$lf_path]"
-		fi
-		echo "Logfile is clean"
-	done
-}
-
 # Generate the header for a TI style software manifest
 sw_manifest_header() {
 echo "

meta-arago-distro/classes/tisdk-image.bbclass echo " · line 238

Quoted 4 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -1
@@ -235,7 +216,7 @@ echo "
 
 # Create the host side toolchain components table
 sw_manifest_toolchain_host() {
-

opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-*-

Quoted 2 lines

linux/var/lib/opkg/info"
+

opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-*-

Quoted 4 lines

linux/var/lib/opkg"

echo "
<h2><u>GPLv3 Development Host Content</u></h2> @@ -471,24

+452,43

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() {

Quoted 9 lines

@@ generate_sw_manifest() {
sw_manifest_footer
}

meta-arago-distro/classes/tisdk-image.bbclass +4 -0
+ROOTFS_PREPROCESS_COMMAND += "tisdk_image_setup; "
+ROOTFS_POSTPROCESS_COMMAND += "tisdk_image_build; "
+IMAGE_PREPROCESS_COMMAND += "tisdk_image_cleanup; "
+
 # Create the SDK image.  We will re-use the

rootfs_ipk_do_rootfs

Quoted 13 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() { · line 467

Quoted 13 lines

functionality # to install a given list of packages using opkg.

meta-arago-distro/classes/tisdk-image.bbclass +7 -5
-do_sdk_image () {
-	set -x
-	rm -rf ${IMAGE_ROOTFS}
-	mkdir -p ${IMAGE_ROOTFS}
-	mkdir -p ${DEPLOY_DIR_IMAGE}
+fakeroot python do_rootfs () {
+    from oe.rootfs import create_rootfs
+    from oe.image import create_image
+    from oe.manifest import create_manifest
+
+    # generate the initial manifest
+    create_manifest(d)

What about the generate_sw_manifest function?

Overall I think this is a step in the right direction though, so ACK for this patch. Just curious if we should expect more.

Quoted 78 lines
Quoted 21 lines
meta-arago-distro/classes/tisdk-image.bbclass +15 -1
+
+    # generate rootfs
+    create_rootfs(d)
+
+    # generate final images
+    create_image(d)
+}
+
+tisdk_image_setup () {
+    set -x
+    rm -rf ${IMAGE_ROOTFS}
+    mkdir -p ${IMAGE_ROOTFS}
+    mkdir -p ${DEPLOY_DIR_IMAGE}
 
-	mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/var/lib/opkg
 
     chmod 755 ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-

${TARGET_OS}-tisdk*

Quoted 1 line

# Temporarily extract the toolchain sdk so we can read

license information

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() { · line 494

Quoted 12 lines

from it.

     echo "${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}" |

${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-tisdk*

meta-arago-distro/classes/tisdk-image.bbclass +2 -3
+}
 
-    # Creat the base SDK image
-	rootfs_${IMAGE_PKGTYPE}_do_rootfs
-
+tisdk_image_build () {
     mkdir -p ${IMAGE_ROOTFS}/filesystem
 
     # Copy the TARGET_IMAGES to the sdk image before packaging

@@ -

Quoted 3 lines

607,23 +607,18 @@ do_sdk_image () {

# Copy the opkg.conf used by the image to allow for future

updates

meta-arago-distro/classes/tisdk-image.bbclass do_sdk_image () {

Quoted 5 lines
     cp ${WORKDIR}/opkg.conf ${IMAGE_ROOTFS}/etc/
meta-arago-distro/classes/tisdk-image.bbclass +2 -0
+}
 
+tisdk_image_cleanup () {
     # Move the var/etc directories which contains the opkg data

used for the

Quoted 1 line
     # manifest (and maybe one day for online updates) to a

hidden directory.

Quoted 22 lines
     mv ${IMAGE_ROOTFS}/var ${IMAGE_ROOTFS}/.var
     mv ${IMAGE_ROOTFS}/etc ${IMAGE_ROOTFS}/.etc
meta-arago-distro/classes/tisdk-image.bbclass +2 -10
-
-    # Create the image directory symlinks
-    # $ { @ get_imagecmds(d) }
 }
 
 license_create_manifest() {
     :
 }
 
-rootfs_install_complementary() {
-    :
-}
-
-EXPORT_FUNCTIONS do_sdk_image
-addtask sdk_image before do_build after do_install
+EXPORT_FUNCTIONS do_rootfs
+addtask rootfs before do_build after do_install
--

2.0.0

Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#3 lore raw
Quoted 133 lines · Chase
Quoted 133 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Tuesday, July 01, 2014 4:10 PM
To: Denys Dmytriyenko; [email protected]
Subject: Re: [meta-arago] [PATCH] tisdk-image.bbclass: update for the new rootfs/image infrastructure

Thanks for this!

Quoted 6 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 01, 2014 2:20 PM
To: [email protected]
Subject: [meta-arago] [PATCH] tisdk-image.bbclass: update for

the new

Quoted 5 lines

rootfs/image infrastructure

From: Denys Dmytriyenko <[email protected]>

The entire rootfs/image processing infrastructure was rewritten

in Python for

Quoted 1 line

Daisy release. Since tisdk_image class is based on rootfs/image

base classes

Quoted 1 line

and uses their APIs, some adjustments are required in order for

it to work.

Quoted 4 lines
---
 meta-arago-distro/classes/tisdk-image.bbclass | 83

+++++++++++++--------------

Review

Quoted 3 lines
 1 file changed, 39 insertions(+), 44 deletions(-)
(quoted diff) +0 -0

b/meta-arago-

meta-arago-distro/classes/tisdk-image.bbclass def string_set(iterable): · line 66

Quoted 7 lines

distro/classes/tisdk-image.bbclass
index b100261..6023d6b 100644

meta-arago-distro/classes/tisdk-image.bbclass +0 -0
@@ -65,18 +65,18 @@ def string_set(iterable):
 
 # Add a dependency for the do_rootfs function that will force

us to build #

Quoted 1 line

the TARGET_IMAGES first so that they will be available for

packaging.

Quoted 1 line

-do_sdk_image[depends] += "${@string_set('%s:do_rootfs' % pn for

pn in

Quoted 2 lines

(d.getVar("TARGET_IMAGES", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_rootfs' % pn for pn

in

Quoted 4 lines

(d.getVar("TARGET_IMAGES", True) or "").split())}"

# Add a dependency for the do_populate_sdk function of the
TIDSK_TOOLCHAIN # variable which will force us to build the

toolchain first so

Quoted 1 line

that it will be # available for packaging -

do_sdk_image[depends] +=

Quoted 3 lines

"${@string_set('%s:do_populate_sdk' % pn for pn in (d.getVar("TISDK_TOOLCHAIN", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_populate_sdk' % pn

for pn in

meta-arago-distro/classes/tisdk-image.bbclass def string_set(iterable):

Quoted 10 lines

(d.getVar("TISDK_TOOLCHAIN", True) or "").split())}"

meta-arago-distro/classes/tisdk-image.bbclass +3 -4
-do_sdk_image[nostamp] = "1"
-do_sdk_image[lockfiles] += "${IMAGE_ROOTFS}.lock"
-do_sdk_image[cleandirs] += "${S}"
+do_rootfs[nostamp] = "1"
+do_rootfs[lockfiles] += "${IMAGE_ROOTFS}.lock"
+do_rootfs[cleandirs] += "${S}"
 
-# Call the cleanup_host_packes to remove packages that should

be removed

Quoted 2 lines

from
+# Call the cleanup_host_packages to remove packages that should

be

Quoted 2 lines

+removed from

 # the host for various reasons.  This may include licensing

issues as well.

meta-arago-distro/classes/tisdk-image.bbclass cleanup_host_packages() { · line 95

Quoted 7 lines

OPKG_POSTPROCESS_COMMANDS = "cleanup_host_packages; "

meta-arago-distro/classes/tisdk-image.bbclass +0 -1
@@ -92,25 +92,6 @@ cleanup_host_packages() {
     fi
 }
 
-# Copy log_check from image.bbclass since the

rootfs_ipk_do_rootfs function

Quoted 22 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -18
-# uses it, but we are not inheriting the full image class.
-log_check() {
-	for target in $*
-	do
-		lf_path="${WORKDIR}/temp/log.do_$target.${PID}"
-
-		echo "log_check: Using $lf_path as logfile"
-
-		if test -e "$lf_path"
-		then
-			${IMAGE_PKGTYPE}_log_check $target $lf_path
-		else
-			echo "Cannot find logfile [$lf_path]"
-		fi
-		echo "Logfile is clean"
-	done
-}
-
 # Generate the header for a TI style software manifest
 sw_manifest_header() {
 echo "

meta-arago-distro/classes/tisdk-image.bbclass echo " · line 238

Quoted 4 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -1
@@ -235,7 +216,7 @@ echo "
 
 # Create the host side toolchain components table
 sw_manifest_toolchain_host() {
-

opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-*-

Quoted 2 lines

linux/var/lib/opkg/info"
+

opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-*-

Quoted 4 lines

linux/var/lib/opkg"

echo "
<h2><u>GPLv3 Development Host Content</u></h2> @@ -471,24

+452,43

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() {

Quoted 9 lines

@@ generate_sw_manifest() {
sw_manifest_footer
}

meta-arago-distro/classes/tisdk-image.bbclass +4 -0
+ROOTFS_PREPROCESS_COMMAND += "tisdk_image_setup; "
+ROOTFS_POSTPROCESS_COMMAND += "tisdk_image_build; "
+IMAGE_PREPROCESS_COMMAND += "tisdk_image_cleanup; "
+
 # Create the SDK image.  We will re-use the

rootfs_ipk_do_rootfs

Quoted 15 lines
Quoted 5 lines
Quoted 5 lines

functionality # to install a given list of packages using opkg.

meta-arago-distro/classes/tisdk-image.bbclass +0 -4
-do_sdk_image () {
-	set -x
-	rm -rf ${IMAGE_ROOTFS}
-	mkdir -p ${IMAGE_ROOTFS}
Quoted 8 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() { · line 467

Quoted 8 lines
meta-arago-distro/classes/tisdk-image.bbclass +7 -1
-	mkdir -p ${DEPLOY_DIR_IMAGE}
+fakeroot python do_rootfs () {
+    from oe.rootfs import create_rootfs
+    from oe.image import create_image
+    from oe.manifest import create_manifest
+
+    # generate the initial manifest
+    create_manifest(d)

What about the generate_sw_manifest function?

What about it? It's still there. I haven't validated all the licenses and other data in the manifest, but it looks reasonable on the first pass.

Quoted 2 lines

Overall I think this is a step in the right direction though, so ACK for this patch. Just curious if we should expect more.

Yeah, I tried to minimize the impact as much as possible. But overall, it's still rather hacky...

Quoted 82 lines
Quoted 70 lines
Quoted 21 lines
meta-arago-distro/classes/tisdk-image.bbclass +15 -1
+
+    # generate rootfs
+    create_rootfs(d)
+
+    # generate final images
+    create_image(d)
+}
+
+tisdk_image_setup () {
+    set -x
+    rm -rf ${IMAGE_ROOTFS}
+    mkdir -p ${IMAGE_ROOTFS}
+    mkdir -p ${DEPLOY_DIR_IMAGE}
 
-	mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/var/lib/opkg
 
     chmod 755 ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-

${TARGET_OS}-tisdk*

Quoted 1 line

# Temporarily extract the toolchain sdk so we can read

license information

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() { · line 494

Quoted 12 lines

from it.

     echo "${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}" |

${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-tisdk*

meta-arago-distro/classes/tisdk-image.bbclass +2 -3
+}
 
-    # Creat the base SDK image
-	rootfs_${IMAGE_PKGTYPE}_do_rootfs
-
+tisdk_image_build () {
     mkdir -p ${IMAGE_ROOTFS}/filesystem
 
     # Copy the TARGET_IMAGES to the sdk image before packaging

@@ -

Quoted 3 lines

607,23 +607,18 @@ do_sdk_image () {

# Copy the opkg.conf used by the image to allow for future

updates

meta-arago-distro/classes/tisdk-image.bbclass do_sdk_image () {

Quoted 5 lines
     cp ${WORKDIR}/opkg.conf ${IMAGE_ROOTFS}/etc/
meta-arago-distro/classes/tisdk-image.bbclass +2 -0
+}
 
+tisdk_image_cleanup () {
     # Move the var/etc directories which contains the opkg data

used for the

Quoted 1 line
     # manifest (and maybe one day for online updates) to a

hidden directory.

Quoted 22 lines
     mv ${IMAGE_ROOTFS}/var ${IMAGE_ROOTFS}/.var
     mv ${IMAGE_ROOTFS}/etc ${IMAGE_ROOTFS}/.etc
meta-arago-distro/classes/tisdk-image.bbclass +2 -10
-
-    # Create the image directory symlinks
-    # $ { @ get_imagecmds(d) }
 }
 
 license_create_manifest() {
     :
 }
 
-rootfs_install_complementary() {
-    :
-}
-
-EXPORT_FUNCTIONS do_sdk_image
-addtask sdk_image before do_build after do_install
+EXPORT_FUNCTIONS do_rootfs
+addtask rootfs before do_build after do_install
--

2.0.0

Quoted 8 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#4 lore raw
Quoted 176 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, July 02, 2014 8:27 AM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; Denys Dmytriyenko; meta-arago@arago- project.org
Subject: Re: [meta-arago] [PATCH] tisdk-image.bbclass: update for the new rootfs/image infrastructure

Quoted 6 lines · Chase
Quoted 6 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Tuesday, July 01, 2014 4:10 PM
To: Denys Dmytriyenko; [email protected]
Subject: Re: [meta-arago] [PATCH] tisdk-image.bbclass: update

for

Quoted 7 lines
Quoted 7 lines

the new rootfs/image infrastructure

Thanks for this!

Quoted 2 lines

-----Original Message-----
From: [email protected] [mailto:meta-

arago-

Quoted 10 lines
Quoted 10 lines
Quoted 4 lines

[email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 01, 2014 2:20 PM
To: [email protected]
Subject: [meta-arago] [PATCH] tisdk-image.bbclass: update for

the new

Quoted 5 lines

rootfs/image infrastructure

From: Denys Dmytriyenko <[email protected]>

The entire rootfs/image processing infrastructure was

rewritten

Quoted 2 lines
Quoted 2 lines

in Python for

Quoted 1 line

Daisy release. Since tisdk_image class is based on

rootfs/image

Quoted 2 lines
Quoted 2 lines

base classes

Quoted 1 line

and uses their APIs, some adjustments are required in order

for

Quoted 10 lines
Quoted 10 lines

it to work.

Quoted 4 lines
---
 meta-arago-distro/classes/tisdk-image.bbclass | 83

+++++++++++++--------------

Review

Quoted 3 lines
 1 file changed, 39 insertions(+), 44 deletions(-)
(quoted diff) +0 -0

b/meta-arago-

Quoted 7 lines
Quoted 7 lines

meta-arago-distro/classes/tisdk-image.bbclass def string_set(iterable): · line 66

Quoted 7 lines

distro/classes/tisdk-image.bbclass
index b100261..6023d6b 100644

meta-arago-distro/classes/tisdk-image.bbclass +0 -0
@@ -65,18 +65,18 @@ def string_set(iterable):
 
 # Add a dependency for the do_rootfs function that will

force

Quoted 4 lines
Quoted 4 lines

us to build #

Quoted 1 line

the TARGET_IMAGES first so that they will be available for

packaging.

Quoted 1 line

-do_sdk_image[depends] += "${@string_set('%s:do_rootfs' % pn

for

Quoted 3 lines
Quoted 3 lines

pn in

Quoted 2 lines

(d.getVar("TARGET_IMAGES", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_rootfs' % pn for

pn

Quoted 11 lines
Quoted 11 lines

in

Quoted 4 lines

(d.getVar("TARGET_IMAGES", True) or "").split())}"

# Add a dependency for the do_populate_sdk function of the
TIDSK_TOOLCHAIN # variable which will force us to build the

toolchain first so

Quoted 1 line

that it will be # available for packaging -

do_sdk_image[depends] +=

Quoted 3 lines

"${@string_set('%s:do_populate_sdk' % pn for pn in (d.getVar("TISDK_TOOLCHAIN", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_populate_sdk' %

pn

Quoted 11 lines
Quoted 11 lines

for pn in

meta-arago-distro/classes/tisdk-image.bbclass def string_set(iterable):

Quoted 10 lines

(d.getVar("TISDK_TOOLCHAIN", True) or "").split())}"

meta-arago-distro/classes/tisdk-image.bbclass +3 -4
-do_sdk_image[nostamp] = "1"
-do_sdk_image[lockfiles] += "${IMAGE_ROOTFS}.lock"
-do_sdk_image[cleandirs] += "${S}"
+do_rootfs[nostamp] = "1"
+do_rootfs[lockfiles] += "${IMAGE_ROOTFS}.lock"
+do_rootfs[cleandirs] += "${S}"
 
-# Call the cleanup_host_packes to remove packages that

should

Quoted 3 lines
Quoted 3 lines

be removed

Quoted 2 lines

from
+# Call the cleanup_host_packages to remove packages that

should

Quoted 12 lines
Quoted 12 lines

be

Quoted 2 lines

+removed from

 # the host for various reasons.  This may include licensing

issues as well.

meta-arago-distro/classes/tisdk-image.bbclass cleanup_host_packages() { · line 95

Quoted 7 lines

OPKG_POSTPROCESS_COMMANDS = "cleanup_host_packages; "

meta-arago-distro/classes/tisdk-image.bbclass +0 -1
@@ -92,25 +92,6 @@ cleanup_host_packages() {
     fi
 }
 
-# Copy log_check from image.bbclass since the

rootfs_ipk_do_rootfs function

Quoted 11 lines
Quoted 11 lines

meta-arago-distro/classes/tisdk-image.bbclass cleanup_host_packages() {

Quoted 11 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -11
-# uses it, but we are not inheriting the full image class.
-log_check() {
-	for target in $*
-	do
-		lf_path="${WORKDIR}/temp/log.do_$target.${PID}"
-
-		echo "log_check: Using $lf_path as logfile"
-
-		if test -e "$lf_path"
-		then
-			${IMAGE_PKGTYPE}_log_check $target

$lf_path

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -7
-		else
-			echo "Cannot find logfile [$lf_path]"
-		fi
-		echo "Logfile is clean"
-	done
-}
-
 # Generate the header for a TI style software manifest
 sw_manifest_header() {
 echo "
@@ -235,7 +216,7 @@ echo "
 
Quoted 5 lines
Quoted 3 lines

meta-arago-distro/classes/tisdk-image.bbclass echo "

Quoted 3 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -1
 # Create the host side toolchain components table
 sw_manifest_toolchain_host() {
-

opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-

*-

Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

linux/var/lib/opkg/info"
+

opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-

*-

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

linux/var/lib/opkg"

echo "
<h2><u>GPLv3 Development Host Content</u></h2> @@ -471,24

+452,43

Quoted 4 lines

@@ generate_sw_manifest() {
sw_manifest_footer
}

Quoted 7 lines
Quoted 7 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() {

Quoted 5 lines
meta-arago-distro/classes/tisdk-image.bbclass +4 -0
+ROOTFS_PREPROCESS_COMMAND += "tisdk_image_setup; "
+ROOTFS_POSTPROCESS_COMMAND += "tisdk_image_build; "
+IMAGE_PREPROCESS_COMMAND += "tisdk_image_cleanup; "
+
 # Create the SDK image.  We will re-use the

rootfs_ipk_do_rootfs

Quoted 1 line

functionality # to install a given list of packages using

opkg.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
meta-arago-distro/classes/tisdk-image.bbclass +1 -5
-do_sdk_image () {
-	set -x
-	rm -rf ${IMAGE_ROOTFS}
-	mkdir -p ${IMAGE_ROOTFS}
-	mkdir -p ${DEPLOY_DIR_IMAGE}
+fakeroot python do_rootfs () {
Quoted 8 lines
Quoted 6 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() { · line 467

Quoted 6 lines
meta-arago-distro/classes/tisdk-image.bbclass +6 -0
+    from oe.rootfs import create_rootfs
+    from oe.image import create_image
+    from oe.manifest import create_manifest
+
+    # generate the initial manifest
+    create_manifest(d)

What about the generate_sw_manifest function?

Quoted 4 lines

What about it? It's still there. I haven't validated all the licenses and
other data in the manifest, but it looks reasonable on the first pass.

I thought this was called from the do_sdk_image function which was replaced by the do_rootfs function here so I looked like the call to that function was removed.

Quoted 97 lines
Quoted 3 lines

Overall I think this is a step in the right direction though, so

ACK for

Quoted 1 line

this patch. Just curious if we should expect more.

Yeah, I tried to minimize the impact as much as possible. But overall, it's
still rather hacky...

Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
meta-arago-distro/classes/tisdk-image.bbclass +15 -1
+
+    # generate rootfs
+    create_rootfs(d)
+
+    # generate final images
+    create_image(d)
+}
+
+tisdk_image_setup () {
+    set -x
+    rm -rf ${IMAGE_ROOTFS}
+    mkdir -p ${IMAGE_ROOTFS}
+    mkdir -p ${DEPLOY_DIR_IMAGE}
 
-	mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/var/lib/opkg
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
     chmod 755 ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-

${TARGET_OS}-tisdk*

# Temporarily extract the toolchain sdk so we can read

license information

Quoted 3 lines

from it.

     echo "${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}" |

${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-

tisdk*

Quoted 9 lines
Quoted 9 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() {

Quoted 9 lines
meta-arago-distro/classes/tisdk-image.bbclass +2 -3
+}
 
-    # Creat the base SDK image
-	rootfs_${IMAGE_PKGTYPE}_do_rootfs
-
+tisdk_image_build () {
     mkdir -p ${IMAGE_ROOTFS}/filesystem
 
     # Copy the TARGET_IMAGES to the sdk image before

packaging

Quoted 4 lines
Quoted 4 lines

@@ -

Quoted 3 lines

607,23 +607,18 @@ do_sdk_image () {

# Copy the opkg.conf used by the image to allow for

future

Quoted 6 lines
Quoted 6 lines

updates

meta-arago-distro/classes/tisdk-image.bbclass do_sdk_image () {

Quoted 5 lines
     cp ${WORKDIR}/opkg.conf ${IMAGE_ROOTFS}/etc/
meta-arago-distro/classes/tisdk-image.bbclass +2 -0
+}
 
+tisdk_image_cleanup () {
     # Move the var/etc directories which contains the opkg

data

Quoted 37 lines
Quoted 25 lines

used for the

Quoted 1 line
     # manifest (and maybe one day for online updates) to a

hidden directory.

Quoted 22 lines
     mv ${IMAGE_ROOTFS}/var ${IMAGE_ROOTFS}/.var
     mv ${IMAGE_ROOTFS}/etc ${IMAGE_ROOTFS}/.etc
meta-arago-distro/classes/tisdk-image.bbclass +2 -10
-
-    # Create the image directory symlinks
-    # $ { @ get_imagecmds(d) }
 }
 
 license_create_manifest() {
     :
 }
 
-rootfs_install_complementary() {
-    :
-}
-
-EXPORT_FUNCTIONS do_sdk_image
-addtask sdk_image before do_build after do_install
+EXPORT_FUNCTIONS do_rootfs
+addtask rootfs before do_build after do_install
--

2.0.0

Quoted 8 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#5 lore raw
Quoted 176 lines · Chase
Quoted 176 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, July 02, 2014 8:27 AM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; Denys Dmytriyenko; meta-arago@arago- project.org
Subject: Re: [meta-arago] [PATCH] tisdk-image.bbclass: update for the new rootfs/image infrastructure

Quoted 6 lines · Chase
Quoted 6 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Tuesday, July 01, 2014 4:10 PM
To: Denys Dmytriyenko; [email protected]
Subject: Re: [meta-arago] [PATCH] tisdk-image.bbclass: update

for

Quoted 7 lines
Quoted 7 lines

the new rootfs/image infrastructure

Thanks for this!

Quoted 2 lines

-----Original Message-----
From: [email protected] [mailto:meta-

arago-

Quoted 10 lines
Quoted 10 lines
Quoted 4 lines

[email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 01, 2014 2:20 PM
To: [email protected]
Subject: [meta-arago] [PATCH] tisdk-image.bbclass: update for

the new

Quoted 5 lines

rootfs/image infrastructure

From: Denys Dmytriyenko <[email protected]>

The entire rootfs/image processing infrastructure was

rewritten

Quoted 2 lines
Quoted 2 lines

in Python for

Quoted 1 line

Daisy release. Since tisdk_image class is based on

rootfs/image

Quoted 2 lines
Quoted 2 lines

base classes

Quoted 1 line

and uses their APIs, some adjustments are required in order

for

Quoted 10 lines
Quoted 10 lines

it to work.

Quoted 4 lines
---
 meta-arago-distro/classes/tisdk-image.bbclass | 83

+++++++++++++--------------

Review

Quoted 3 lines
 1 file changed, 39 insertions(+), 44 deletions(-)
(quoted diff) +0 -0

b/meta-arago-

Quoted 7 lines
Quoted 7 lines

meta-arago-distro/classes/tisdk-image.bbclass def string_set(iterable): · line 66

Quoted 7 lines

distro/classes/tisdk-image.bbclass
index b100261..6023d6b 100644

meta-arago-distro/classes/tisdk-image.bbclass +0 -0
@@ -65,18 +65,18 @@ def string_set(iterable):
 
 # Add a dependency for the do_rootfs function that will

force

Quoted 4 lines
Quoted 4 lines

us to build #

Quoted 1 line

the TARGET_IMAGES first so that they will be available for

packaging.

Quoted 1 line

-do_sdk_image[depends] += "${@string_set('%s:do_rootfs' % pn

for

Quoted 3 lines
Quoted 3 lines

pn in

Quoted 2 lines

(d.getVar("TARGET_IMAGES", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_rootfs' % pn for

pn

Quoted 11 lines
Quoted 11 lines

in

Quoted 4 lines

(d.getVar("TARGET_IMAGES", True) or "").split())}"

# Add a dependency for the do_populate_sdk function of the
TIDSK_TOOLCHAIN # variable which will force us to build the

toolchain first so

Quoted 1 line

that it will be # available for packaging -

do_sdk_image[depends] +=

Quoted 3 lines

"${@string_set('%s:do_populate_sdk' % pn for pn in (d.getVar("TISDK_TOOLCHAIN", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_populate_sdk' %

pn

Quoted 11 lines
Quoted 11 lines

for pn in

meta-arago-distro/classes/tisdk-image.bbclass def string_set(iterable):

Quoted 10 lines

(d.getVar("TISDK_TOOLCHAIN", True) or "").split())}"

meta-arago-distro/classes/tisdk-image.bbclass +3 -4
-do_sdk_image[nostamp] = "1"
-do_sdk_image[lockfiles] += "${IMAGE_ROOTFS}.lock"
-do_sdk_image[cleandirs] += "${S}"
+do_rootfs[nostamp] = "1"
+do_rootfs[lockfiles] += "${IMAGE_ROOTFS}.lock"
+do_rootfs[cleandirs] += "${S}"
 
-# Call the cleanup_host_packes to remove packages that

should

Quoted 3 lines
Quoted 3 lines

be removed

Quoted 2 lines

from
+# Call the cleanup_host_packages to remove packages that

should

Quoted 12 lines
Quoted 12 lines

be

Quoted 2 lines

+removed from

 # the host for various reasons.  This may include licensing

issues as well.

meta-arago-distro/classes/tisdk-image.bbclass cleanup_host_packages() { · line 95

Quoted 7 lines

OPKG_POSTPROCESS_COMMANDS = "cleanup_host_packages; "

meta-arago-distro/classes/tisdk-image.bbclass +0 -1
@@ -92,25 +92,6 @@ cleanup_host_packages() {
     fi
 }
 
-# Copy log_check from image.bbclass since the

rootfs_ipk_do_rootfs function

Quoted 11 lines
Quoted 11 lines

meta-arago-distro/classes/tisdk-image.bbclass cleanup_host_packages() {

Quoted 11 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -11
-# uses it, but we are not inheriting the full image class.
-log_check() {
-	for target in $*
-	do
-		lf_path="${WORKDIR}/temp/log.do_$target.${PID}"
-
-		echo "log_check: Using $lf_path as logfile"
-
-		if test -e "$lf_path"
-		then
-			${IMAGE_PKGTYPE}_log_check $target

$lf_path

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -7
-		else
-			echo "Cannot find logfile [$lf_path]"
-		fi
-		echo "Logfile is clean"
-	done
-}
-
 # Generate the header for a TI style software manifest
 sw_manifest_header() {
 echo "
@@ -235,7 +216,7 @@ echo "
 
Quoted 5 lines
Quoted 3 lines

meta-arago-distro/classes/tisdk-image.bbclass echo "

Quoted 3 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -1
 # Create the host side toolchain components table
 sw_manifest_toolchain_host() {
-

opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-

*-

Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

linux/var/lib/opkg/info"
+

opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686-

*-

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

linux/var/lib/opkg"

echo "
<h2><u>GPLv3 Development Host Content</u></h2> @@ -471,24

+452,43

Quoted 4 lines

@@ generate_sw_manifest() {
sw_manifest_footer
}

Quoted 7 lines
Quoted 7 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() {

Quoted 5 lines
meta-arago-distro/classes/tisdk-image.bbclass +4 -0
+ROOTFS_PREPROCESS_COMMAND += "tisdk_image_setup; "
+ROOTFS_POSTPROCESS_COMMAND += "tisdk_image_build; "
+IMAGE_PREPROCESS_COMMAND += "tisdk_image_cleanup; "
+
 # Create the SDK image.  We will re-use the

rootfs_ipk_do_rootfs

Quoted 1 line

functionality # to install a given list of packages using

opkg.

Quoted 14 lines
Quoted 4 lines
Quoted 4 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -4
-do_sdk_image () {
-	set -x
-	rm -rf ${IMAGE_ROOTFS}
-	mkdir -p ${IMAGE_ROOTFS}
Quoted 8 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() { · line 467

Quoted 8 lines
meta-arago-distro/classes/tisdk-image.bbclass +7 -1
-	mkdir -p ${DEPLOY_DIR_IMAGE}
+fakeroot python do_rootfs () {
+    from oe.rootfs import create_rootfs
+    from oe.image import create_image
+    from oe.manifest import create_manifest
+
+    # generate the initial manifest
+    create_manifest(d)

What about the generate_sw_manifest function?

Quoted 8 lines
Quoted 4 lines

What about it? It's still there. I haven't validated all the licenses and
other data in the manifest, but it looks reasonable on the first pass.

I thought this was called from the do_sdk_image function which was replaced by the do_rootfs function here so I looked like the call to that function was removed.

No, do_sdk_image (which originally was almost a direct replacement for do_rootfs) was split out into 3 sub-functions tisdk_image_setup, tisdk_image_build and tisdk_imgage_cleanup to wrap around the standard Python-based do_rootfs. The 100% of tisdk functionality is still there!

So, I basically reversed the logic. It used to be driven by do_sdk_image function and calling out APIs from rootfs and image classes inside, when needed. Now, it lets standard do_rootfs do its thing and asks to call us back at proper times through those 3 callback functions above. This was the least invasive fix - it still works and keeps 95% of our code as is. Otherwise it would have been required to rewrite it entirely in Python...

Quoted 95 lines
Quoted 95 lines
Quoted 1 line

Overall I think this is a step in the right direction though, so

ACK for

Quoted 1 line

this patch. Just curious if we should expect more.

Yeah, I tried to minimize the impact as much as possible. But overall, it's
still rather hacky...

Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
meta-arago-distro/classes/tisdk-image.bbclass +15 -1
+
+    # generate rootfs
+    create_rootfs(d)
+
+    # generate final images
+    create_image(d)
+}
+
+tisdk_image_setup () {
+    set -x
+    rm -rf ${IMAGE_ROOTFS}
+    mkdir -p ${IMAGE_ROOTFS}
+    mkdir -p ${DEPLOY_DIR_IMAGE}
 
-	mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/var/lib/opkg
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
     chmod 755 ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-

${TARGET_OS}-tisdk*

# Temporarily extract the toolchain sdk so we can read

license information

Quoted 3 lines

from it.

     echo "${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}" |

${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-

tisdk*

Quoted 9 lines
Quoted 9 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() {

Quoted 9 lines
meta-arago-distro/classes/tisdk-image.bbclass +2 -3
+}
 
-    # Creat the base SDK image
-	rootfs_${IMAGE_PKGTYPE}_do_rootfs
-
+tisdk_image_build () {
     mkdir -p ${IMAGE_ROOTFS}/filesystem
 
     # Copy the TARGET_IMAGES to the sdk image before

packaging

Quoted 4 lines
Quoted 4 lines

@@ -

Quoted 3 lines

607,23 +607,18 @@ do_sdk_image () {

# Copy the opkg.conf used by the image to allow for

future

Quoted 6 lines
Quoted 6 lines

updates

meta-arago-distro/classes/tisdk-image.bbclass do_sdk_image () {

Quoted 5 lines
     cp ${WORKDIR}/opkg.conf ${IMAGE_ROOTFS}/etc/
meta-arago-distro/classes/tisdk-image.bbclass +2 -0
+}
 
+tisdk_image_cleanup () {
     # Move the var/etc directories which contains the opkg

data

Quoted 37 lines
Quoted 25 lines

used for the

Quoted 1 line
     # manifest (and maybe one day for online updates) to a

hidden directory.

Quoted 22 lines
     mv ${IMAGE_ROOTFS}/var ${IMAGE_ROOTFS}/.var
     mv ${IMAGE_ROOTFS}/etc ${IMAGE_ROOTFS}/.etc
meta-arago-distro/classes/tisdk-image.bbclass +2 -10
-
-    # Create the image directory symlinks
-    # $ { @ get_imagecmds(d) }
 }
 
 license_create_manifest() {
     :
 }
 
-rootfs_install_complementary() {
-    :
-}
-
-EXPORT_FUNCTIONS do_sdk_image
-addtask sdk_image before do_build after do_install
+EXPORT_FUNCTIONS do_rootfs
+addtask rootfs before do_build after do_install
--

2.0.0

Quoted 8 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#6 lore raw
Quoted 220 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, July 02, 2014 8:54 AM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; Denys Dmytriyenko; meta-arago@arago- project.org
Subject: Re: [meta-arago] [PATCH] tisdk-image.bbclass: update for the new rootfs/image infrastructure

Quoted 7 lines · Chase
Quoted 7 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, July 02, 2014 8:27 AM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; Denys Dmytriyenko; meta-arago@arago- project.org
Subject: Re: [meta-arago] [PATCH] tisdk-image.bbclass: update

for

Quoted 5 lines
Quoted 5 lines

the new rootfs/image infrastructure

Quoted 2 lines · Chase
Quoted 2 lines

-----Original Message-----
From: [email protected] [mailto:meta-

arago-

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

[email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Tuesday, July 01, 2014 4:10 PM
To: Denys Dmytriyenko; [email protected]
Subject: Re: [meta-arago] [PATCH] tisdk-image.bbclass:

update

Quoted 6 lines
Quoted 6 lines

for

Quoted 5 lines
Quoted 5 lines

the new rootfs/image infrastructure

Thanks for this!

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-----Original Message-----
From: [email protected] [mailto:meta-

arago-

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

[email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 01, 2014 2:20 PM
To: [email protected]
Subject: [meta-arago] [PATCH] tisdk-image.bbclass: update

for

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

the new

Quoted 4 lines

rootfs/image infrastructure

From: Denys Dmytriyenko <[email protected]>

Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

The entire rootfs/image processing infrastructure was

rewritten

Quoted 2 lines
Quoted 2 lines

in Python for

Quoted 1 line

Daisy release. Since tisdk_image class is based on

rootfs/image

Quoted 2 lines
Quoted 2 lines

base classes

Quoted 1 line

and uses their APIs, some adjustments are required in

order

Quoted 17 lines
Quoted 17 lines

for

Quoted 16 lines
Quoted 16 lines

it to work.

Quoted 4 lines
---
 meta-arago-distro/classes/tisdk-image.bbclass | 83

+++++++++++++--------------

Review

Quoted 3 lines
 1 file changed, 39 insertions(+), 44 deletions(-)
(quoted diff) +0 -0

b/meta-arago-

Quoted 6 lines

distro/classes/tisdk-image.bbclass
index b100261..6023d6b 100644

meta-arago-distro/classes/tisdk-image.bbclass +0 -0
@@ -65,18 +65,18 @@ def string_set(iterable):
 
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

meta-arago-distro/classes/tisdk-image.bbclass def string_set(iterable): · line 66

Quoted 1 line
meta-arago-distro/classes/tisdk-image.bbclass +0 -0
 # Add a dependency for the do_rootfs function that will

force

Quoted 4 lines
Quoted 4 lines

us to build #

Quoted 1 line

the TARGET_IMAGES first so that they will be available for

packaging.

Quoted 1 line

-do_sdk_image[depends] += "${@string_set('%s:do_rootfs' %

pn

Quoted 4 lines
Quoted 4 lines

for

Quoted 3 lines
Quoted 3 lines

pn in

Quoted 2 lines

(d.getVar("TARGET_IMAGES", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_rootfs' % pn

for

Quoted 5 lines
Quoted 5 lines

pn

Quoted 4 lines
Quoted 4 lines

in

Quoted 3 lines

(d.getVar("TARGET_IMAGES", True) or "").split())}"

# Add a dependency for the do_populate_sdk function of

the

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

TIDSK_TOOLCHAIN # variable which will force us to build

the

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

toolchain first so

Quoted 1 line

that it will be # available for packaging -

do_sdk_image[depends] +=

Quoted 3 lines

"${@string_set('%s:do_populate_sdk' % pn for pn in (d.getVar("TISDK_TOOLCHAIN", True) or "").split())}" +do_rootfs[depends] += "${@string_set('%s:do_populate_sdk'

%

Quoted 13 lines
Quoted 13 lines

pn

Quoted 11 lines
Quoted 11 lines

for pn in

meta-arago-distro/classes/tisdk-image.bbclass def string_set(iterable):

Quoted 10 lines

(d.getVar("TISDK_TOOLCHAIN", True) or "").split())}"

meta-arago-distro/classes/tisdk-image.bbclass +3 -4
-do_sdk_image[nostamp] = "1"
-do_sdk_image[lockfiles] += "${IMAGE_ROOTFS}.lock"
-do_sdk_image[cleandirs] += "${S}"
+do_rootfs[nostamp] = "1"
+do_rootfs[lockfiles] += "${IMAGE_ROOTFS}.lock"
+do_rootfs[cleandirs] += "${S}"
 
-# Call the cleanup_host_packes to remove packages that

should

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

be removed

Quoted 2 lines

from
+# Call the cleanup_host_packages to remove packages that

should

Quoted 3 lines
Quoted 3 lines

be

Quoted 2 lines

+removed from

 # the host for various reasons.  This may include

licensing

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

issues as well.

meta-arago-distro/classes/tisdk-image.bbclass cleanup_host_packages() { · line 95

Quoted 7 lines

OPKG_POSTPROCESS_COMMANDS = "cleanup_host_packages; "

meta-arago-distro/classes/tisdk-image.bbclass +0 -1
@@ -92,25 +92,6 @@ cleanup_host_packages() {
     fi
 }
 
-# Copy log_check from image.bbclass since the

rootfs_ipk_do_rootfs function

Quoted 1 line
meta-arago-distro/classes/tisdk-image.bbclass +0 -1
-# uses it, but we are not inheriting the full image

class.

Quoted 68 lines
Quoted 68 lines
Quoted 10 lines
Quoted 10 lines

meta-arago-distro/classes/tisdk-image.bbclass cleanup_host_packages() {

Quoted 10 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -10
-log_check() {
-	for target in $*
-	do
-		lf_path="${WORKDIR}/temp/log.do_$target.${PID}"
-
-		echo "log_check: Using $lf_path as logfile"
-
-		if test -e "$lf_path"
-		then
-			${IMAGE_PKGTYPE}_log_check $target

$lf_path

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -7
-		else
-			echo "Cannot find logfile [$lf_path]"
-		fi
-		echo "Logfile is clean"
-	done
-}
-
 # Generate the header for a TI style software manifest
 sw_manifest_header() {
 echo "
@@ -235,7 +216,7 @@ echo "
 
Quoted 4 lines
Quoted 3 lines

meta-arago-distro/classes/tisdk-image.bbclass echo "

Quoted 3 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -1
 # Create the host side toolchain components table
 sw_manifest_toolchain_host() {
-

opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686- *-

Quoted 3 lines
Quoted 2 lines
Quoted 2 lines

linux/var/lib/opkg/info"
+

opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/i686- *-

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

linux/var/lib/opkg"

echo "
<h2><u>GPLv3 Development Host Content</u></h2> @@ -471,24

+452,43

Quoted 4 lines

@@ generate_sw_manifest() {
sw_manifest_footer
}

Quoted 7 lines
Quoted 7 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() {

Quoted 5 lines
meta-arago-distro/classes/tisdk-image.bbclass +4 -0
+ROOTFS_PREPROCESS_COMMAND += "tisdk_image_setup; "
+ROOTFS_POSTPROCESS_COMMAND += "tisdk_image_build; "
+IMAGE_PREPROCESS_COMMAND += "tisdk_image_cleanup; "
+
 # Create the SDK image.  We will re-use the

rootfs_ipk_do_rootfs

Quoted 1 line

functionality # to install a given list of packages using

opkg.

Quoted 14 lines
Quoted 4 lines
Quoted 4 lines
meta-arago-distro/classes/tisdk-image.bbclass +0 -4
-do_sdk_image () {
-	set -x
-	rm -rf ${IMAGE_ROOTFS}
-	mkdir -p ${IMAGE_ROOTFS}
Quoted 8 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() { · line 467

Quoted 8 lines
meta-arago-distro/classes/tisdk-image.bbclass +7 -1
-	mkdir -p ${DEPLOY_DIR_IMAGE}
+fakeroot python do_rootfs () {
+    from oe.rootfs import create_rootfs
+    from oe.image import create_image
+    from oe.manifest import create_manifest
+
+    # generate the initial manifest
+    create_manifest(d)

What about the generate_sw_manifest function?

Quoted 3 lines
Quoted 3 lines

What about it? It's still there. I haven't validated all the licenses and
other data in the manifest, but it looks reasonable on the

first

Quoted 3 lines
Quoted 1 line

pass.

I thought this was called from the do_sdk_image function which

was replaced

Quoted 1 line

by the do_rootfs function here so I looked like the call to that

function

Quoted 1 line

was removed.

No, do_sdk_image (which originally was almost a direct replacement for
do_rootfs) was split out into 3 sub-functions tisdk_image_setup, tisdk_image_build and tisdk_imgage_cleanup to wrap around the standard
Python-based do_rootfs. The 100% of tisdk functionality is still there!

Quoted 11 lines

So, I basically reversed the logic. It used to be driven by do_sdk_image
function and calling out APIs from rootfs and image classes inside, when
needed. Now, it lets standard do_rootfs do its thing and asks to call us back
at proper times through those 3 callback functions above. This was the least
invasive fix - it still works and keeps 95% of our code as is. Otherwise it
would have been required to rewrite it entirely in Python...

Now I understand. Thanks for the explanation.

Quoted 103 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Overall I think this is a step in the right direction though,

so

Quoted 22 lines
Quoted 22 lines

ACK for

Quoted 1 line

this patch. Just curious if we should expect more.

Yeah, I tried to minimize the impact as much as possible. But overall, it's
still rather hacky...

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
meta-arago-distro/classes/tisdk-image.bbclass +13 -0
+
+    # generate rootfs
+    create_rootfs(d)
+
+    # generate final images
+    create_image(d)
+}
+
+tisdk_image_setup () {
+    set -x
+    rm -rf ${IMAGE_ROOTFS}
+    mkdir -p ${IMAGE_ROOTFS}
+    mkdir -p ${DEPLOY_DIR_IMAGE}
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() {

Quoted 5 lines
meta-arago-distro/classes/tisdk-image.bbclass +2 -1
-	mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/etc
+    mkdir -p ${IMAGE_ROOTFS}/var/lib/opkg
 
     chmod 755 ${DEPLOY_DIR}/sdk/${SDK_NAME}-

${ARMPKGARCH}-

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

${TARGET_OS}-tisdk*

# Temporarily extract the toolchain sdk so we can

read

Quoted 18 lines
Quoted 18 lines
Quoted 4 lines
Quoted 4 lines

license information

Quoted 3 lines

from it.

     echo "${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}" |

${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-

tisdk*

Quoted 9 lines
Quoted 9 lines

meta-arago-distro/classes/tisdk-image.bbclass generate_sw_manifest() {

Quoted 9 lines
meta-arago-distro/classes/tisdk-image.bbclass +2 -3
+}
 
-    # Creat the base SDK image
-	rootfs_${IMAGE_PKGTYPE}_do_rootfs
-
+tisdk_image_build () {
     mkdir -p ${IMAGE_ROOTFS}/filesystem
 
     # Copy the TARGET_IMAGES to the sdk image before

packaging

Quoted 3 lines
Quoted 3 lines

@@ -

Quoted 2 lines

607,23 +607,18 @@ do_sdk_image () {

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

# Copy the opkg.conf used by the image to allow for

future

Quoted 6 lines
Quoted 6 lines

updates

meta-arago-distro/classes/tisdk-image.bbclass do_sdk_image () {

Quoted 5 lines
     cp ${WORKDIR}/opkg.conf ${IMAGE_ROOTFS}/etc/
meta-arago-distro/classes/tisdk-image.bbclass +2 -0
+}
 
+tisdk_image_cleanup () {
     # Move the var/etc directories which contains the

opkg

Quoted 3 lines
Quoted 3 lines

data

Quoted 2 lines
Quoted 2 lines

used for the

Quoted 1 line
     # manifest (and maybe one day for online updates) to

a

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines

hidden directory.

Quoted 22 lines
     mv ${IMAGE_ROOTFS}/var ${IMAGE_ROOTFS}/.var
     mv ${IMAGE_ROOTFS}/etc ${IMAGE_ROOTFS}/.etc
meta-arago-distro/classes/tisdk-image.bbclass +2 -10
-
-    # Create the image directory symlinks
-    # $ { @ get_imagecmds(d) }
 }
 
 license_create_manifest() {
     :
 }
 
-rootfs_install_complementary() {
-    :
-}
-
-EXPORT_FUNCTIONS do_sdk_image
-addtask sdk_image before do_build after do_install
+EXPORT_FUNCTIONS do_rootfs
+addtask rootfs before do_build after do_install
--

2.0.0

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-

arago

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago