Message ID | 20240122123751.83696-5-Quirin.Gylstorff@siemens.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Reduce difference to debian | expand |
On Mon, 2024-01-22 at 13:37 +0100, Quirin Gylstorff wrote: > From: Quirin Gylstorff <quirin.gylstorff@siemens.com> > > This allows to use wfx together with swupdate with out embedding > server_wfx.lua. > > Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com> > --- > ...rate-build_profile-option-for-delta-.patch | 8 ++-- > ...tch-to-add-the-build-version-to-swup.patch | 6 +-- > ...s-Add-option-to-enable-suricatta_wfx.patch | 6 +-- > ...install-Fix-path-for-debian-bullseye.patch | 6 +-- > ...tall-server_wfx.lua-to-usr-share-lua.patch | 44 > +++++++++++++++++++ > recipes-core/swupdate/swupdate_2023.05.bb | 8 +--- > 6 files changed, 58 insertions(+), 20 deletions(-) > create mode 100644 recipes-core/swupdate/files/2023.05/0005-d-rules- > install-server_wfx.lua-to-usr-share-lua.patch > > diff --git a/recipes-core/swupdate/files/2023.05/0001-d-rules-Add- > seperate-build_profile-option-for-delta-.patch b/recipes- > core/swupdate/files/2023.05/0001-d-rules-Add-seperate-build_profile- > option-for-delta-.patch > index 0d0fc0a..4a63dfd 100644 > --- a/recipes-core/swupdate/files/2023.05/0001-d-rules-Add-seperate- > build_profile-option-for-delta-.patch > +++ b/recipes-core/swupdate/files/2023.05/0001-d-rules-Add-seperate- > build_profile-option-for-delta-.patch > @@ -1,7 +1,7 @@ > -From 03d455be74d439c7e2eb849e5acdfb494afb3d7c Mon Sep 17 00:00:00 > 2001 > +From ce4e66c37fd6f2cb147fd0e75cfcabebdef3abd5 Mon Sep 17 00:00:00 > 2001 > From: Quirin Gylstorff <quirin.gylstorff@siemens.com> > Date: Thu, 15 Jun 2023 18:48:25 +0200 > -Subject: [PATCH 1/4] d/rules: Add seperate build_profile option for > delta > +Subject: [PATCH 1/6] d/rules: Add seperate build_profile option for > delta > update > > Delta update need zchunk 1.3 to work on memory restricted > @@ -15,7 +15,7 @@ Signed-off-by: Quirin Gylstorff > <quirin.gylstorff@siemens.com> > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/debian/control b/debian/control > -index a389b2a9..2f0c0053 100644 > +index acbecd47..a0d4edcc 100644 > --- a/debian/control > +++ b/debian/control > @@ -28,7 +28,7 @@ Build-Depends: debhelper-compat (= 13), > @@ -41,5 +41,5 @@ index 3b1cc0f6..2c91677c 100755 > endif > ifneq (,$(findstring $(DEB_HOST_ARCH),amd64 i386 arm64 armhf > riscv64 ia64)) > -- > -2.42.0 > +2.43.0 > > diff --git a/recipes-core/swupdate/files/2023.05/0002-d-patches-Add- > patch-to-add-the-build-version-to-swup.patch b/recipes- > core/swupdate/files/2023.05/0002-d-patches-Add-patch-to-add-the- > build-version-to-swup.patch > index 8056818..65c3cb6 100644 > --- a/recipes-core/swupdate/files/2023.05/0002-d-patches-Add-patch- > to-add-the-build-version-to-swup.patch > +++ b/recipes-core/swupdate/files/2023.05/0002-d-patches-Add-patch- > to-add-the-build-version-to-swup.patch > @@ -1,7 +1,7 @@ > -From ad714bc12b03c148aadb3523f87cc14d42a477b0 Mon Sep 17 00:00:00 > 2001 > +From 384613cc6d0b87e58cf8ca9636f65730b0790061 Mon Sep 17 00:00:00 > 2001 > From: Quirin Gylstorff <quirin.gylstorff@siemens.com> > Date: Fri, 16 Jun 2023 19:43:38 +0200 > -Subject: [PATCH 2/4] d/patches: Add patch to add the build version > to swupdate > +Subject: [PATCH 2/6] d/patches: Add patch to add the build version > to swupdate > > The build version is only set if build in a git repository > this patch allows to use the version information stored in > @@ -90,5 +90,5 @@ index 2c91677c..5d72987c 100755 > ifeq (linux,$(DEB_HOST_ARCH_OS)) > BU_SWU += -VBuilt-Using="$(shell dpkg-query -f > '$${source:Package} (= $${source:Version}), ' -W libmtd-dev libubi- > dev)" > -- > -2.42.0 > +2.43.0 > > diff --git a/recipes-core/swupdate/files/2023.05/0003-d-rules-Add- > option-to-enable-suricatta_wfx.patch b/recipes- > core/swupdate/files/2023.05/0003-d-rules-Add-option-to-enable- > suricatta_wfx.patch > index 87c60d7..e320665 100644 > --- a/recipes-core/swupdate/files/2023.05/0003-d-rules-Add-option-to- > enable-suricatta_wfx.patch > +++ b/recipes-core/swupdate/files/2023.05/0003-d-rules-Add-option-to- > enable-suricatta_wfx.patch > @@ -1,7 +1,7 @@ > -From fae97f0e23f945c1ab6e767451cda1d2798aa348 Mon Sep 17 00:00:00 > 2001 > +From 2be6e19412eb44c55b648bb8f34acf4e87bb0d3a Mon Sep 17 00:00:00 > 2001 > From: Quirin Gylstorff <quirin.gylstorff@siemens.com> > Date: Fri, 16 Jun 2023 20:32:38 +0200 > -Subject: [PATCH 3/4] d/rules: Add option to enable suricatta_wfx > +Subject: [PATCH 3/6] d/rules: Add option to enable suricatta_wfx > > Add the DEB_BUILD_PROFILE "pkg.swupdate.suricattawfx" to build with > suricattawfx lua module. > @@ -26,5 +26,5 @@ index 5d72987c..d7ff5510 100755 > echo CONFIG_LUAPKG=\"lua$(LUA_VERSION)\" >> > configs/debian_defconfig > echo CONFIG_LUASCRIPTHANDLER=y >> > configs/debian_defconfig > -- > -2.42.0 > +2.43.0 > > diff --git a/recipes-core/swupdate/files/2023.05/0004-d-swupdate- > www.install-Fix-path-for-debian-bullseye.patch b/recipes- > core/swupdate/files/2023.05/0004-d-swupdate-www.install-Fix-path-for- > debian-bullseye.patch > index b2d831d..a1e8bc7 100644 > --- a/recipes-core/swupdate/files/2023.05/0004-d-swupdate- > www.install-Fix-path-for-debian-bullseye.patch > +++ b/recipes-core/swupdate/files/2023.05/0004-d-swupdate- > www.install-Fix-path-for-debian-bullseye.patch > @@ -1,7 +1,7 @@ > -From f2184e7573e705bad408cf1422599b967773d48e Mon Sep 17 00:00:00 > 2001 > +From 4ee463885ce2532b5bdf8beb6106e357670a737a Mon Sep 17 00:00:00 > 2001 > From: Quirin Gylstorff <quirin.gylstorff@siemens.com> > Date: Thu, 16 Nov 2023 16:40:19 +0100 > -Subject: [PATCH 4/4] d/swupdate-www.install: Fix path for debian- > bullseye > +Subject: [PATCH 4/6] d/swupdate-www.install: Fix path for debian- > bullseye > > Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com> > --- > @@ -20,5 +20,5 @@ index 7e3d95c6..9c6113cc 100644 > web-app/js /usr/share/swupdate/www > web-app/node_modules /usr/share/swupdate/www > -- > -2.42.0 > +2.43.0 > > diff --git a/recipes-core/swupdate/files/2023.05/0005-d-rules- > install-server_wfx.lua-to-usr-share-lua.patch b/recipes- > core/swupdate/files/2023.05/0005-d-rules-install-server_wfx.lua-to- > usr-share-lua.patch > new file mode 100644 > index 0000000..a4c960a > --- /dev/null > +++ b/recipes-core/swupdate/files/2023.05/0005-d-rules-install- > server_wfx.lua-to-usr-share-lua.patch > @@ -0,0 +1,44 @@ > +From c34282446c928d7a1603b7dd825de7e1ddede829 Mon Sep 17 00:00:00 > 2001 > +From: Quirin Gylstorff <quirin.gylstorff@siemens.com> > +Date: Mon, 15 Jan 2024 13:28:42 +0100 > +Subject: [PATCH 5/6] d/rules: install server_wfx.lua to > /usr/share/lua > + > +Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com> > +--- > + debian/lua-swupdate.install | 1 + > + debian/rules | 5 +++++ > + 2 files changed, 6 insertions(+) > + > +diff --git a/debian/lua-swupdate.install b/debian/lua- > swupdate.install > +index afde2a68..6cd5436c 100644 > +--- a/debian/lua-swupdate.install > ++++ b/debian/lua-swupdate.install > +@@ -1 +1,2 @@ > ++examples/suricatta/swupdate_suricatta.lua usr/share/lua/5.3/ > + usr/lib/*/lua/*/lua_swupdate*.so* > +diff --git a/debian/rules b/debian/rules > +index d7ff5510..8be9221f 100755 > +--- a/debian/rules > ++++ b/debian/rules > +@@ -71,6 +71,10 @@ endif > + echo CONFIG_EXTRA_LDFLAGS=\"$(LDFLAGS)\" >> > configs/debian_defconfig > + echo CONFIG_EXTRA_LDLIBS=\"$(LDLIBS)\" >> > configs/debian_defconfig > + $(MAKE) debian_defconfig > ++ifneq (,$(LUA_VERSION)) > ++ mv suricatta/server_wfx.lua suricatta/swupdate_suricatta.lua > ++ echo "suricatta/swupdate_suricatta.lua > /usr/share/lua/$(LUA_VERSION)" >> debian/swupdate.install > ++endif > + > + override_dh_auto_build: > + ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) ----------------------------------^ ------------------------------------------------------^ The nodoc option / profile MUST be added to both variables anyways, according to Build Profile Spec [1]. Just evaluate the DEB_BUILD_PROFILES variable. [1] https://wiki.debian.org/BuildProfileSpec#Registered_profile_names Felix > +@@ -97,6 +101,7 @@ endif > + endif > + > + override_dh_auto_install: > ++ > + dh_auto_install -- V=1 > + > + override_dh_installsystemd: > +-- > +2.43.0 > + > diff --git a/recipes-core/swupdate/swupdate_2023.05.bb b/recipes- > core/swupdate/swupdate_2023.05.bb > index d1fe1fa..7533bfa 100644 > --- a/recipes-core/swupdate/swupdate_2023.05.bb > +++ b/recipes-core/swupdate/swupdate_2023.05.bb > @@ -28,15 +28,9 @@ SRCREV_upstream = > "c8ca55684c375937dbcdefb0563071a35137f4ba" > # patches > SRC_URI += > "file://0001-d-rules-Add-seperate-build_profile-option-for-delta-.pat > ch \ > > file://0002-d-patches-Add-patch-to-add-the-build-version-to-swup.patch > \ > - > file://0003-d-rules-Add-option-to-enable-suricatta_wfx.patch" > + > file://0005-d-rules-install-server_wfx.lua-to-usr-share-lua.patch" > SRC_URI:append:bullseye = " > file://0004-d-swupdate-www.install-Fix-path-for-debian-bullseye.patch > " > > -# suricatta wfx requires suricatta lua and the dependency > -# is not set automatically > -DEB_BUILD_PROFILES += "pkg.swupdate.suricattalua" > -# add suricatta wfx > -DEB_BUILD_PROFILES += "pkg.swupdate.suricattawfx" > - > # Disable cross for arm and arm64 on bullseye > # with cross compile we have a unsat-dependency to dh-nodejs on > arm/arm64 > ISAR_CROSS_COMPILE:bullseye = "0"
On 1/23/24 10:22, Moessbauer, Felix (T CED OES-DE) wrote: > On Mon, 2024-01-22 at 13:37 +0100, Quirin Gylstorff wrote: >> From: Quirin Gylstorff <quirin.gylstorff@siemens.com> >> >> This allows to use wfx together with swupdate with out embedding >> server_wfx.lua. >> >> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com> >> --- >> ...rate-build_profile-option-for-delta-.patch | 8 ++-- >> ...tch-to-add-the-build-version-to-swup.patch | 6 +-- >> ...s-Add-option-to-enable-suricatta_wfx.patch | 6 +-- >> ...install-Fix-path-for-debian-bullseye.patch | 6 +-- >> ...tall-server_wfx.lua-to-usr-share-lua.patch | 44 >> +++++++++++++++++++ >> recipes-core/swupdate/swupdate_2023.05.bb | 8 +--- >> 6 files changed, 58 insertions(+), 20 deletions(-) >> create mode 100644 recipes-core/swupdate/files/2023.05/0005-d-rules- >> install-server_wfx.lua-to-usr-share-lua.patch >> >> diff --git a/recipes-core/swupdate/files/2023.05/0001-d-rules-Add- >> seperate-build_profile-option-for-delta-.patch b/recipes- >> core/swupdate/files/2023.05/0001-d-rules-Add-seperate-build_profile- >> option-for-delta-.patch >> index 0d0fc0a..4a63dfd 100644 >> --- a/recipes-core/swupdate/files/2023.05/0001-d-rules-Add-seperate- >> build_profile-option-for-delta-.patch >> +++ b/recipes-core/swupdate/files/2023.05/0001-d-rules-Add-seperate- >> build_profile-option-for-delta-.patch >> @@ -1,7 +1,7 @@ >> -From 03d455be74d439c7e2eb849e5acdfb494afb3d7c Mon Sep 17 00:00:00 >> 2001 >> +From ce4e66c37fd6f2cb147fd0e75cfcabebdef3abd5 Mon Sep 17 00:00:00 >> 2001 >> From: Quirin Gylstorff <quirin.gylstorff@siemens.com> >> Date: Thu, 15 Jun 2023 18:48:25 +0200 >> -Subject: [PATCH 1/4] d/rules: Add seperate build_profile option for >> delta >> +Subject: [PATCH 1/6] d/rules: Add seperate build_profile option for >> delta >> update >> >> Delta update need zchunk 1.3 to work on memory restricted >> @@ -15,7 +15,7 @@ Signed-off-by: Quirin Gylstorff >> <quirin.gylstorff@siemens.com> >> 2 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/debian/control b/debian/control >> -index a389b2a9..2f0c0053 100644 >> +index acbecd47..a0d4edcc 100644 >> --- a/debian/control >> +++ b/debian/control >> @@ -28,7 +28,7 @@ Build-Depends: debhelper-compat (= 13), >> @@ -41,5 +41,5 @@ index 3b1cc0f6..2c91677c 100755 >> endif >> ifneq (,$(findstring $(DEB_HOST_ARCH),amd64 i386 arm64 armhf >> riscv64 ia64)) >> -- >> -2.42.0 >> +2.43.0 >> >> diff --git a/recipes-core/swupdate/files/2023.05/0002-d-patches-Add- >> patch-to-add-the-build-version-to-swup.patch b/recipes- >> core/swupdate/files/2023.05/0002-d-patches-Add-patch-to-add-the- >> build-version-to-swup.patch >> index 8056818..65c3cb6 100644 >> --- a/recipes-core/swupdate/files/2023.05/0002-d-patches-Add-patch- >> to-add-the-build-version-to-swup.patch >> +++ b/recipes-core/swupdate/files/2023.05/0002-d-patches-Add-patch- >> to-add-the-build-version-to-swup.patch >> @@ -1,7 +1,7 @@ >> -From ad714bc12b03c148aadb3523f87cc14d42a477b0 Mon Sep 17 00:00:00 >> 2001 >> +From 384613cc6d0b87e58cf8ca9636f65730b0790061 Mon Sep 17 00:00:00 >> 2001 >> From: Quirin Gylstorff <quirin.gylstorff@siemens.com> >> Date: Fri, 16 Jun 2023 19:43:38 +0200 >> -Subject: [PATCH 2/4] d/patches: Add patch to add the build version >> to swupdate >> +Subject: [PATCH 2/6] d/patches: Add patch to add the build version >> to swupdate >> >> The build version is only set if build in a git repository >> this patch allows to use the version information stored in >> @@ -90,5 +90,5 @@ index 2c91677c..5d72987c 100755 >> ifeq (linux,$(DEB_HOST_ARCH_OS)) >> BU_SWU += -VBuilt-Using="$(shell dpkg-query -f >> '$${source:Package} (= $${source:Version}), ' -W libmtd-dev libubi- >> dev)" >> -- >> -2.42.0 >> +2.43.0 >> >> diff --git a/recipes-core/swupdate/files/2023.05/0003-d-rules-Add- >> option-to-enable-suricatta_wfx.patch b/recipes- >> core/swupdate/files/2023.05/0003-d-rules-Add-option-to-enable- >> suricatta_wfx.patch >> index 87c60d7..e320665 100644 >> --- a/recipes-core/swupdate/files/2023.05/0003-d-rules-Add-option-to- >> enable-suricatta_wfx.patch >> +++ b/recipes-core/swupdate/files/2023.05/0003-d-rules-Add-option-to- >> enable-suricatta_wfx.patch >> @@ -1,7 +1,7 @@ >> -From fae97f0e23f945c1ab6e767451cda1d2798aa348 Mon Sep 17 00:00:00 >> 2001 >> +From 2be6e19412eb44c55b648bb8f34acf4e87bb0d3a Mon Sep 17 00:00:00 >> 2001 >> From: Quirin Gylstorff <quirin.gylstorff@siemens.com> >> Date: Fri, 16 Jun 2023 20:32:38 +0200 >> -Subject: [PATCH 3/4] d/rules: Add option to enable suricatta_wfx >> +Subject: [PATCH 3/6] d/rules: Add option to enable suricatta_wfx >> >> Add the DEB_BUILD_PROFILE "pkg.swupdate.suricattawfx" to build with >> suricattawfx lua module. >> @@ -26,5 +26,5 @@ index 5d72987c..d7ff5510 100755 >> echo CONFIG_LUAPKG=\"lua$(LUA_VERSION)\" >> >> configs/debian_defconfig >> echo CONFIG_LUASCRIPTHANDLER=y >> >> configs/debian_defconfig >> -- >> -2.42.0 >> +2.43.0 >> >> diff --git a/recipes-core/swupdate/files/2023.05/0004-d-swupdate- >> www.install-Fix-path-for-debian-bullseye.patch b/recipes- >> core/swupdate/files/2023.05/0004-d-swupdate-www.install-Fix-path-for- >> debian-bullseye.patch >> index b2d831d..a1e8bc7 100644 >> --- a/recipes-core/swupdate/files/2023.05/0004-d-swupdate- >> www.install-Fix-path-for-debian-bullseye.patch >> +++ b/recipes-core/swupdate/files/2023.05/0004-d-swupdate- >> www.install-Fix-path-for-debian-bullseye.patch >> @@ -1,7 +1,7 @@ >> -From f2184e7573e705bad408cf1422599b967773d48e Mon Sep 17 00:00:00 >> 2001 >> +From 4ee463885ce2532b5bdf8beb6106e357670a737a Mon Sep 17 00:00:00 >> 2001 >> From: Quirin Gylstorff <quirin.gylstorff@siemens.com> >> Date: Thu, 16 Nov 2023 16:40:19 +0100 >> -Subject: [PATCH 4/4] d/swupdate-www.install: Fix path for debian- >> bullseye >> +Subject: [PATCH 4/6] d/swupdate-www.install: Fix path for debian- >> bullseye >> >> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com> >> --- >> @@ -20,5 +20,5 @@ index 7e3d95c6..9c6113cc 100644 >> web-app/js /usr/share/swupdate/www >> web-app/node_modules /usr/share/swupdate/www >> -- >> -2.42.0 >> +2.43.0 >> >> diff --git a/recipes-core/swupdate/files/2023.05/0005-d-rules- >> install-server_wfx.lua-to-usr-share-lua.patch b/recipes- >> core/swupdate/files/2023.05/0005-d-rules-install-server_wfx.lua-to- >> usr-share-lua.patch >> new file mode 100644 >> index 0000000..a4c960a >> --- /dev/null >> +++ b/recipes-core/swupdate/files/2023.05/0005-d-rules-install- >> server_wfx.lua-to-usr-share-lua.patch >> @@ -0,0 +1,44 @@ >> +From c34282446c928d7a1603b7dd825de7e1ddede829 Mon Sep 17 00:00:00 >> 2001 >> +From: Quirin Gylstorff <quirin.gylstorff@siemens.com> >> +Date: Mon, 15 Jan 2024 13:28:42 +0100 >> +Subject: [PATCH 5/6] d/rules: install server_wfx.lua to >> /usr/share/lua >> + >> +Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com> >> +--- >> + debian/lua-swupdate.install | 1 + >> + debian/rules | 5 +++++ >> + 2 files changed, 6 insertions(+) >> + >> +diff --git a/debian/lua-swupdate.install b/debian/lua- >> swupdate.install >> +index afde2a68..6cd5436c 100644 >> +--- a/debian/lua-swupdate.install >> ++++ b/debian/lua-swupdate.install >> +@@ -1 +1,2 @@ >> ++examples/suricatta/swupdate_suricatta.lua usr/share/lua/5.3/ >> + usr/lib/*/lua/*/lua_swupdate*.so* >> +diff --git a/debian/rules b/debian/rules >> +index d7ff5510..8be9221f 100755 >> +--- a/debian/rules >> ++++ b/debian/rules >> +@@ -71,6 +71,10 @@ endif >> + echo CONFIG_EXTRA_LDFLAGS=\"$(LDFLAGS)\" >> >> configs/debian_defconfig >> + echo CONFIG_EXTRA_LDLIBS=\"$(LDLIBS)\" >> >> configs/debian_defconfig >> + $(MAKE) debian_defconfig >> ++ifneq (,$(LUA_VERSION)) >> ++ mv suricatta/server_wfx.lua suricatta/swupdate_suricatta.lua >> ++ echo "suricatta/swupdate_suricatta.lua >> /usr/share/lua/$(LUA_VERSION)" >> debian/swupdate.install >> ++endif >> + >> + override_dh_auto_build: >> + ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) > ----------------------------------^ > ------------------------------------------------------^ > > The nodoc option / profile MUST be added to both variables anyways, > according to Build Profile Spec [1]. Just evaluate the > DEB_BUILD_PROFILES variable. > > [1] https://wiki.debian.org/BuildProfileSpec#Registered_profile_names I will propose that change upstream but it is not include in this patch. Quirin > > Felix > >> +@@ -97,6 +101,7 @@ endif >> + endif >> + >> + override_dh_auto_install: >> ++ >> + dh_auto_install -- V=1 >> + >> + override_dh_installsystemd: >> +-- >> +2.43.0 >> + >> diff --git a/recipes-core/swupdate/swupdate_2023.05.bb b/recipes- >> core/swupdate/swupdate_2023.05.bb >> index d1fe1fa..7533bfa 100644 >> --- a/recipes-core/swupdate/swupdate_2023.05.bb >> +++ b/recipes-core/swupdate/swupdate_2023.05.bb >> @@ -28,15 +28,9 @@ SRCREV_upstream = >> "c8ca55684c375937dbcdefb0563071a35137f4ba" >> # patches >> SRC_URI += >> "file://0001-d-rules-Add-seperate-build_profile-option-for-delta-.pat >> ch \ >> >> file://0002-d-patches-Add-patch-to-add-the-build-version-to-swup.patch >> \ >> - >> file://0003-d-rules-Add-option-to-enable-suricatta_wfx.patch" >> + >> file://0005-d-rules-install-server_wfx.lua-to-usr-share-lua.patch" >> SRC_URI:append:bullseye = " >> file://0004-d-swupdate-www.install-Fix-path-for-debian-bullseye.patch >> " >> >> -# suricatta wfx requires suricatta lua and the dependency >> -# is not set automatically >> -DEB_BUILD_PROFILES += "pkg.swupdate.suricattalua" >> -# add suricatta wfx >> -DEB_BUILD_PROFILES += "pkg.swupdate.suricattawfx" >> - >> # Disable cross for arm and arm64 on bullseye >> # with cross compile we have a unsat-dependency to dh-nodejs on >> arm/arm64 >> ISAR_CROSS_COMPILE:bullseye = "0" >
diff --git a/recipes-core/swupdate/files/2023.05/0001-d-rules-Add-seperate-build_profile-option-for-delta-.patch b/recipes-core/swupdate/files/2023.05/0001-d-rules-Add-seperate-build_profile-option-for-delta-.patch index 0d0fc0a..4a63dfd 100644 --- a/recipes-core/swupdate/files/2023.05/0001-d-rules-Add-seperate-build_profile-option-for-delta-.patch +++ b/recipes-core/swupdate/files/2023.05/0001-d-rules-Add-seperate-build_profile-option-for-delta-.patch @@ -1,7 +1,7 @@ -From 03d455be74d439c7e2eb849e5acdfb494afb3d7c Mon Sep 17 00:00:00 2001 +From ce4e66c37fd6f2cb147fd0e75cfcabebdef3abd5 Mon Sep 17 00:00:00 2001 From: Quirin Gylstorff <quirin.gylstorff@siemens.com> Date: Thu, 15 Jun 2023 18:48:25 +0200 -Subject: [PATCH 1/4] d/rules: Add seperate build_profile option for delta +Subject: [PATCH 1/6] d/rules: Add seperate build_profile option for delta update Delta update need zchunk 1.3 to work on memory restricted @@ -15,7 +15,7 @@ Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com> 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control -index a389b2a9..2f0c0053 100644 +index acbecd47..a0d4edcc 100644 --- a/debian/control +++ b/debian/control @@ -28,7 +28,7 @@ Build-Depends: debhelper-compat (= 13), @@ -41,5 +41,5 @@ index 3b1cc0f6..2c91677c 100755 endif ifneq (,$(findstring $(DEB_HOST_ARCH),amd64 i386 arm64 armhf riscv64 ia64)) -- -2.42.0 +2.43.0 diff --git a/recipes-core/swupdate/files/2023.05/0002-d-patches-Add-patch-to-add-the-build-version-to-swup.patch b/recipes-core/swupdate/files/2023.05/0002-d-patches-Add-patch-to-add-the-build-version-to-swup.patch index 8056818..65c3cb6 100644 --- a/recipes-core/swupdate/files/2023.05/0002-d-patches-Add-patch-to-add-the-build-version-to-swup.patch +++ b/recipes-core/swupdate/files/2023.05/0002-d-patches-Add-patch-to-add-the-build-version-to-swup.patch @@ -1,7 +1,7 @@ -From ad714bc12b03c148aadb3523f87cc14d42a477b0 Mon Sep 17 00:00:00 2001 +From 384613cc6d0b87e58cf8ca9636f65730b0790061 Mon Sep 17 00:00:00 2001 From: Quirin Gylstorff <quirin.gylstorff@siemens.com> Date: Fri, 16 Jun 2023 19:43:38 +0200 -Subject: [PATCH 2/4] d/patches: Add patch to add the build version to swupdate +Subject: [PATCH 2/6] d/patches: Add patch to add the build version to swupdate The build version is only set if build in a git repository this patch allows to use the version information stored in @@ -90,5 +90,5 @@ index 2c91677c..5d72987c 100755 ifeq (linux,$(DEB_HOST_ARCH_OS)) BU_SWU += -VBuilt-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W libmtd-dev libubi-dev)" -- -2.42.0 +2.43.0 diff --git a/recipes-core/swupdate/files/2023.05/0003-d-rules-Add-option-to-enable-suricatta_wfx.patch b/recipes-core/swupdate/files/2023.05/0003-d-rules-Add-option-to-enable-suricatta_wfx.patch index 87c60d7..e320665 100644 --- a/recipes-core/swupdate/files/2023.05/0003-d-rules-Add-option-to-enable-suricatta_wfx.patch +++ b/recipes-core/swupdate/files/2023.05/0003-d-rules-Add-option-to-enable-suricatta_wfx.patch @@ -1,7 +1,7 @@ -From fae97f0e23f945c1ab6e767451cda1d2798aa348 Mon Sep 17 00:00:00 2001 +From 2be6e19412eb44c55b648bb8f34acf4e87bb0d3a Mon Sep 17 00:00:00 2001 From: Quirin Gylstorff <quirin.gylstorff@siemens.com> Date: Fri, 16 Jun 2023 20:32:38 +0200 -Subject: [PATCH 3/4] d/rules: Add option to enable suricatta_wfx +Subject: [PATCH 3/6] d/rules: Add option to enable suricatta_wfx Add the DEB_BUILD_PROFILE "pkg.swupdate.suricattawfx" to build with suricattawfx lua module. @@ -26,5 +26,5 @@ index 5d72987c..d7ff5510 100755 echo CONFIG_LUAPKG=\"lua$(LUA_VERSION)\" >> configs/debian_defconfig echo CONFIG_LUASCRIPTHANDLER=y >> configs/debian_defconfig -- -2.42.0 +2.43.0 diff --git a/recipes-core/swupdate/files/2023.05/0004-d-swupdate-www.install-Fix-path-for-debian-bullseye.patch b/recipes-core/swupdate/files/2023.05/0004-d-swupdate-www.install-Fix-path-for-debian-bullseye.patch index b2d831d..a1e8bc7 100644 --- a/recipes-core/swupdate/files/2023.05/0004-d-swupdate-www.install-Fix-path-for-debian-bullseye.patch +++ b/recipes-core/swupdate/files/2023.05/0004-d-swupdate-www.install-Fix-path-for-debian-bullseye.patch @@ -1,7 +1,7 @@ -From f2184e7573e705bad408cf1422599b967773d48e Mon Sep 17 00:00:00 2001 +From 4ee463885ce2532b5bdf8beb6106e357670a737a Mon Sep 17 00:00:00 2001 From: Quirin Gylstorff <quirin.gylstorff@siemens.com> Date: Thu, 16 Nov 2023 16:40:19 +0100 -Subject: [PATCH 4/4] d/swupdate-www.install: Fix path for debian-bullseye +Subject: [PATCH 4/6] d/swupdate-www.install: Fix path for debian-bullseye Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com> --- @@ -20,5 +20,5 @@ index 7e3d95c6..9c6113cc 100644 web-app/js /usr/share/swupdate/www web-app/node_modules /usr/share/swupdate/www -- -2.42.0 +2.43.0 diff --git a/recipes-core/swupdate/files/2023.05/0005-d-rules-install-server_wfx.lua-to-usr-share-lua.patch b/recipes-core/swupdate/files/2023.05/0005-d-rules-install-server_wfx.lua-to-usr-share-lua.patch new file mode 100644 index 0000000..a4c960a --- /dev/null +++ b/recipes-core/swupdate/files/2023.05/0005-d-rules-install-server_wfx.lua-to-usr-share-lua.patch @@ -0,0 +1,44 @@ +From c34282446c928d7a1603b7dd825de7e1ddede829 Mon Sep 17 00:00:00 2001 +From: Quirin Gylstorff <quirin.gylstorff@siemens.com> +Date: Mon, 15 Jan 2024 13:28:42 +0100 +Subject: [PATCH 5/6] d/rules: install server_wfx.lua to /usr/share/lua + +Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com> +--- + debian/lua-swupdate.install | 1 + + debian/rules | 5 +++++ + 2 files changed, 6 insertions(+) + +diff --git a/debian/lua-swupdate.install b/debian/lua-swupdate.install +index afde2a68..6cd5436c 100644 +--- a/debian/lua-swupdate.install ++++ b/debian/lua-swupdate.install +@@ -1 +1,2 @@ ++examples/suricatta/swupdate_suricatta.lua usr/share/lua/5.3/ + usr/lib/*/lua/*/lua_swupdate*.so* +diff --git a/debian/rules b/debian/rules +index d7ff5510..8be9221f 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -71,6 +71,10 @@ endif + echo CONFIG_EXTRA_LDFLAGS=\"$(LDFLAGS)\" >> configs/debian_defconfig + echo CONFIG_EXTRA_LDLIBS=\"$(LDLIBS)\" >> configs/debian_defconfig + $(MAKE) debian_defconfig ++ifneq (,$(LUA_VERSION)) ++ mv suricatta/server_wfx.lua suricatta/swupdate_suricatta.lua ++ echo "suricatta/swupdate_suricatta.lua /usr/share/lua/$(LUA_VERSION)" >> debian/swupdate.install ++endif + + override_dh_auto_build: + ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) +@@ -97,6 +101,7 @@ endif + endif + + override_dh_auto_install: ++ + dh_auto_install -- V=1 + + override_dh_installsystemd: +-- +2.43.0 + diff --git a/recipes-core/swupdate/swupdate_2023.05.bb b/recipes-core/swupdate/swupdate_2023.05.bb index d1fe1fa..7533bfa 100644 --- a/recipes-core/swupdate/swupdate_2023.05.bb +++ b/recipes-core/swupdate/swupdate_2023.05.bb @@ -28,15 +28,9 @@ SRCREV_upstream = "c8ca55684c375937dbcdefb0563071a35137f4ba" # patches SRC_URI += "file://0001-d-rules-Add-seperate-build_profile-option-for-delta-.patch \ file://0002-d-patches-Add-patch-to-add-the-build-version-to-swup.patch \ - file://0003-d-rules-Add-option-to-enable-suricatta_wfx.patch" + file://0005-d-rules-install-server_wfx.lua-to-usr-share-lua.patch" SRC_URI:append:bullseye = " file://0004-d-swupdate-www.install-Fix-path-for-debian-bullseye.patch" -# suricatta wfx requires suricatta lua and the dependency -# is not set automatically -DEB_BUILD_PROFILES += "pkg.swupdate.suricattalua" -# add suricatta wfx -DEB_BUILD_PROFILES += "pkg.swupdate.suricattawfx" - # Disable cross for arm and arm64 on bullseye # with cross compile we have a unsat-dependency to dh-nodejs on arm/arm64 ISAR_CROSS_COMPILE:bullseye = "0"