diff mbox series

[Noble/Unstable,1/6] UBUNTU: [Packaging] Remove do_full_source variable

Message ID 20231124132836.92441-2-juerg.haefliger@canonical.com
State New
Headers show
Series Remove obsolete packaging bits and pieces | expand

Commit Message

Juerg Haefliger Nov. 24, 2023, 1:28 p.m. UTC
do_full_source was introduced in Lucid but hasn't been used in ages,
so remove it.

This reverts commit 11fe82b00ff2428967c83055ba7ae8102f4140a6
("UBUNTU: add configuration option for a full source build tree -- master")
from lucid/linux.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
---
 debian/rules.d/0-common-vars.mk |  3 ---
 debian/rules.d/2-binary-arch.mk | 25 +++++++------------------
 2 files changed, 7 insertions(+), 21 deletions(-)

Comments

Masahiro Yamada Dec. 4, 2023, 3:36 p.m. UTC | #1
On Fri, Nov 24, 2023 at 10:30 PM Juerg Haefliger
<juerg.haefliger@canonical.com> wrote:
>
> do_full_source was introduced in Lucid but hasn't been used in ages,
> so remove it.
>
> This reverts commit 11fe82b00ff2428967c83055ba7ae8102f4140a6
> ("UBUNTU: add configuration option for a full source build tree -- master")
> from lucid/linux.
>
> Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>



Acked-by: Masahiro Yamada <masahiro.yamada@canonical.com>



You noted the original commit ID,
11fe82b00ff2428967c83055ba7ae8102f4140a6


Usually, I do not record any commit ID, which may be changed
by the future rebase.

I really do not like our workflow, but that is what we do.














> ---
>  debian/rules.d/0-common-vars.mk |  3 ---
>  debian/rules.d/2-binary-arch.mk | 25 +++++++------------------
>  2 files changed, 7 insertions(+), 21 deletions(-)
>
> diff --git a/debian/rules.d/0-common-vars.mk b/debian/rules.d/0-common-vars.mk
> index d62a9b063241..0c9df2b35893 100644
> --- a/debian/rules.d/0-common-vars.mk
> +++ b/debian/rules.d/0-common-vars.mk
> @@ -161,9 +161,6 @@ endif
>  # common headers normally is built as an indep package, but may be arch
>  do_common_headers_indep=true
>
> -# add a 'full source' mode
> -do_full_source=false
> -
>  # Add an option to enable special drivers which should only be build when
>  # explicitly enabled.
>  do_odm_drivers=false
> diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
> index 098614c46b77..0750fd9e8fc3 100644
> --- a/debian/rules.d/2-binary-arch.mk
> +++ b/debian/rules.d/2-binary-arch.mk
> @@ -1,15 +1,6 @@
>  # We don't want make removing intermediary stamps
>  .SECONDARY :
>
> -# Prepare the out-of-tree build directory
> -ifeq ($(do_full_source),true)
> -build_cd = cd $(builddir)/build-$*; #
> -build_O  =
> -else
> -build_cd =
> -build_O  = O=$(builddir)/build-$*
> -endif
> -
>  # TODO this is probably wrong, and should be using $(DEB_HOST_MULTIARCH)
>  shlibdeps_opts = $(if $(CROSS_COMPILE),-- -l$(CROSS_COMPILE:%-=/usr/%)/lib)
>
> @@ -24,8 +15,6 @@ $(stampdir)/stamp-prepare-tree-%: debian/scripts/fix-filenames
>         @echo Debug: $@
>         install -d $(builddir)/build-$*
>         touch $(builddir)/build-$*/ubuntu-build
> -       [ "$(do_full_source)" != 'true' ] && true || \
> -               rsync -a --exclude debian --exclude debian.master --exclude $(DEBIAN) * $(builddir)/build-$*
>         if [ -e $(commonconfdir)/config.common.ubuntu ]; then \
>                 cat $(commonconfdir)/config.common.ubuntu $(archconfdir)/config.common.$(arch) $(archconfdir)/config.flavour.$(target_flavour) > $(builddir)/build-$*/.config; \
>         else \
> @@ -36,8 +25,8 @@ $(stampdir)/stamp-prepare-tree-%: debian/scripts/fix-filenames
>                 sed -ie 's/.*CONFIG_UBUNTU_ODM_DRIVERS.*/# CONFIG_UBUNTU_ODM_DRIVERS is not set/' \
>                     $(builddir)/build-$*/.config
>         find $(builddir)/build-$* -name "*.ko" | xargs rm -f
> -       $(build_cd) $(kmake) $(build_O) $(conc_level) rustavailable || true
> -       $(build_cd) $(kmake) $(build_O) $(conc_level) olddefconfig
> +       $(kmake) O=$(builddir)/build-$* $(conc_level) rustavailable || true
> +       $(kmake) O=$(builddir)/build-$* $(conc_level) olddefconfig
>         touch $@
>
>  # Used by developers as a shortcut to prepare a tree for compilation.
> @@ -52,12 +41,12 @@ $(stampdir)/stamp-build-%: target_flavour = $*
>  $(stampdir)/stamp-build-%: bldimg = $(call custom_override,build_image,$*)
>  $(stampdir)/stamp-build-%: $(stampdir)/stamp-prepare-%
>         @echo Debug: $@ build_image $(build_image) bldimg $(bldimg)
> -       $(build_cd) $(kmake) $(build_O) $(conc_level) $(bldimg) modules $(if $(filter true,$(do_dtbs)),dtbs)
> +       $(kmake) O=$(builddir)/build-$* $(conc_level) $(bldimg) modules $(if $(filter true,$(do_dtbs)),dtbs)
>
>  ifeq ($(do_dbgsym_package),true)
>         # The target scripts_gdb is part of "all", so we need to call it manually
>         if grep -q CONFIG_GDB_SCRIPTS=y $(builddir)/build-$*/.config; then \
> -               $(build_cd) $(kmake) $(build_O) $(conc_level) scripts_gdb ; \
> +               $(kmake) O=$(builddir)/build-$* $(conc_level) scripts_gdb ; \
>         fi
>  endif
>
> @@ -164,7 +153,7 @@ endif
>                 $(pkgdir)/boot/System.map-$(abi_release)-$*
>
>  ifeq ($(do_dtbs),true)
> -       $(build_cd) $(kmake) $(build_O) $(conc_level) dtbs_install \
> +       $(kmake) O=$(builddir)/build-$* $(conc_level) dtbs_install \
>                 INSTALL_DTBS_PATH=$(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree
>  endif
>
> @@ -174,7 +163,7 @@ ifeq ($(no_dumpfile),)
>         chmod 0600 $(pkgdir)/boot/vmcoreinfo-$(abi_release)-$*
>  endif
>
> -       $(build_cd) $(kmake) $(build_O) $(conc_level) modules_install $(vdso) \
> +       $(kmake) O=$(builddir)/build-$* $(conc_level) modules_install $(vdso) \
>                 INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$(pkgdir)/
>
>         #
> @@ -287,7 +276,7 @@ ifeq ($(do_dbgsym_package),true)
>                 install -m644 -D $(builddir)/build-$*/scripts/gdb/linux/* \
>                         --target-directory=$(dbgpkgdir)/usr/share/gdb/auto-load/boot/vmlinux-$(abi_release)-$*/scripts/gdb/linux; \
>         fi
> -       $(build_cd) $(kmake) $(build_O) modules_install $(vdso) \
> +       $(kmake) O=$(builddir)/build-$* modules_install $(vdso) \
>                 INSTALL_MOD_PATH=$(dbgpkgdir)/usr/lib/debug
>         # Add .gnu_debuglink sections only after all/DKMS modules are built.
>         rm -f $(dbgpkgdir)/usr/lib/debug/lib/modules/$(abi_release)-$*/build
> --
> 2.40.1
>
>
> --
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Masahiro Yamada Dec. 4, 2023, 4:10 p.m. UTC | #2
On Tue, Dec 5, 2023 at 12:36 AM Masahiro Yamada
<masahiro.yamada@canonical.com> wrote:
>
> On Fri, Nov 24, 2023 at 10:30 PM Juerg Haefliger
> <juerg.haefliger@canonical.com> wrote:
> >
> > do_full_source was introduced in Lucid but hasn't been used in ages,
> > so remove it.
> >
> > This reverts commit 11fe82b00ff2428967c83055ba7ae8102f4140a6
> > ("UBUNTU: add configuration option for a full source build tree -- master")
> > from lucid/linux.
> >
> > Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
>
>
>
> Acked-by: Masahiro Yamada <masahiro.yamada@canonical.com>
>
>
>
> You noted the original commit ID,
> 11fe82b00ff2428967c83055ba7ae8102f4140a6
>
>

Sorry, I missed your point.
You explicitly noted "from lucid/linux",
so this is a fixed id in that tree.



But, I do not know how to find historic
repositories like lucid.
Juerg Haefliger Dec. 6, 2023, 3:47 p.m. UTC | #3
On Tue, 5 Dec 2023 01:10:21 +0900
Masahiro Yamada <masahiro.yamada@canonical.com> wrote:

> On Tue, Dec 5, 2023 at 12:36 AM Masahiro Yamada
> <masahiro.yamada@canonical.com> wrote:
> >
> > On Fri, Nov 24, 2023 at 10:30 PM Juerg Haefliger
> > <juerg.haefliger@canonical.com> wrote:  
> > >
> > > do_full_source was introduced in Lucid but hasn't been used in ages,
> > > so remove it.
> > >
> > > This reverts commit 11fe82b00ff2428967c83055ba7ae8102f4140a6
> > > ("UBUNTU: add configuration option for a full source build tree -- master")
> > > from lucid/linux.
> > >
> > > Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>  
> >
> >
> >
> > Acked-by: Masahiro Yamada <masahiro.yamada@canonical.com>
> >
> >
> >
> > You noted the original commit ID,
> > 11fe82b00ff2428967c83055ba7ae8102f4140a6
> >
> >  
> 
> Sorry, I missed your point.
> You explicitly noted "from lucid/linux",
> so this is a fixed id in that tree.
> 
> 
> But, I do not know how to find historic
> repositories like lucid.

They're all in the same place (2nd page):
https://code.launchpad.net/~ubuntu-kernel/+git

...Juerg
diff mbox series

Patch

diff --git a/debian/rules.d/0-common-vars.mk b/debian/rules.d/0-common-vars.mk
index d62a9b063241..0c9df2b35893 100644
--- a/debian/rules.d/0-common-vars.mk
+++ b/debian/rules.d/0-common-vars.mk
@@ -161,9 +161,6 @@  endif
 # common headers normally is built as an indep package, but may be arch
 do_common_headers_indep=true
 
-# add a 'full source' mode
-do_full_source=false
-
 # Add an option to enable special drivers which should only be build when
 # explicitly enabled.
 do_odm_drivers=false
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 098614c46b77..0750fd9e8fc3 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -1,15 +1,6 @@ 
 # We don't want make removing intermediary stamps
 .SECONDARY :
 
-# Prepare the out-of-tree build directory
-ifeq ($(do_full_source),true)
-build_cd = cd $(builddir)/build-$*; #
-build_O  =
-else
-build_cd =
-build_O  = O=$(builddir)/build-$*
-endif
-
 # TODO this is probably wrong, and should be using $(DEB_HOST_MULTIARCH)
 shlibdeps_opts = $(if $(CROSS_COMPILE),-- -l$(CROSS_COMPILE:%-=/usr/%)/lib)
 
@@ -24,8 +15,6 @@  $(stampdir)/stamp-prepare-tree-%: debian/scripts/fix-filenames
 	@echo Debug: $@
 	install -d $(builddir)/build-$*
 	touch $(builddir)/build-$*/ubuntu-build
-	[ "$(do_full_source)" != 'true' ] && true || \
-		rsync -a --exclude debian --exclude debian.master --exclude $(DEBIAN) * $(builddir)/build-$*
 	if [ -e $(commonconfdir)/config.common.ubuntu ]; then \
 		cat $(commonconfdir)/config.common.ubuntu $(archconfdir)/config.common.$(arch) $(archconfdir)/config.flavour.$(target_flavour) > $(builddir)/build-$*/.config; \
 	else \
@@ -36,8 +25,8 @@  $(stampdir)/stamp-prepare-tree-%: debian/scripts/fix-filenames
 		sed -ie 's/.*CONFIG_UBUNTU_ODM_DRIVERS.*/# CONFIG_UBUNTU_ODM_DRIVERS is not set/' \
 		    $(builddir)/build-$*/.config
 	find $(builddir)/build-$* -name "*.ko" | xargs rm -f
-	$(build_cd) $(kmake) $(build_O) $(conc_level) rustavailable || true
-	$(build_cd) $(kmake) $(build_O) $(conc_level) olddefconfig
+	$(kmake) O=$(builddir)/build-$* $(conc_level) rustavailable || true
+	$(kmake) O=$(builddir)/build-$* $(conc_level) olddefconfig
 	touch $@
 
 # Used by developers as a shortcut to prepare a tree for compilation.
@@ -52,12 +41,12 @@  $(stampdir)/stamp-build-%: target_flavour = $*
 $(stampdir)/stamp-build-%: bldimg = $(call custom_override,build_image,$*)
 $(stampdir)/stamp-build-%: $(stampdir)/stamp-prepare-%
 	@echo Debug: $@ build_image $(build_image) bldimg $(bldimg)
-	$(build_cd) $(kmake) $(build_O) $(conc_level) $(bldimg) modules $(if $(filter true,$(do_dtbs)),dtbs)
+	$(kmake) O=$(builddir)/build-$* $(conc_level) $(bldimg) modules $(if $(filter true,$(do_dtbs)),dtbs)
 
 ifeq ($(do_dbgsym_package),true)
 	# The target scripts_gdb is part of "all", so we need to call it manually
 	if grep -q CONFIG_GDB_SCRIPTS=y $(builddir)/build-$*/.config; then \
-		$(build_cd) $(kmake) $(build_O) $(conc_level) scripts_gdb ; \
+		$(kmake) O=$(builddir)/build-$* $(conc_level) scripts_gdb ; \
 	fi
 endif
 
@@ -164,7 +153,7 @@  endif
 		$(pkgdir)/boot/System.map-$(abi_release)-$*
 
 ifeq ($(do_dtbs),true)
-	$(build_cd) $(kmake) $(build_O) $(conc_level) dtbs_install \
+	$(kmake) O=$(builddir)/build-$* $(conc_level) dtbs_install \
 		INSTALL_DTBS_PATH=$(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree
 endif
 
@@ -174,7 +163,7 @@  ifeq ($(no_dumpfile),)
 	chmod 0600 $(pkgdir)/boot/vmcoreinfo-$(abi_release)-$*
 endif
 
-	$(build_cd) $(kmake) $(build_O) $(conc_level) modules_install $(vdso) \
+	$(kmake) O=$(builddir)/build-$* $(conc_level) modules_install $(vdso) \
 		INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$(pkgdir)/
 
 	#
@@ -287,7 +276,7 @@  ifeq ($(do_dbgsym_package),true)
 		install -m644 -D $(builddir)/build-$*/scripts/gdb/linux/* \
 			--target-directory=$(dbgpkgdir)/usr/share/gdb/auto-load/boot/vmlinux-$(abi_release)-$*/scripts/gdb/linux; \
 	fi
-	$(build_cd) $(kmake) $(build_O) modules_install $(vdso) \
+	$(kmake) O=$(builddir)/build-$* modules_install $(vdso) \
 		INSTALL_MOD_PATH=$(dbgpkgdir)/usr/lib/debug
 	# Add .gnu_debuglink sections only after all/DKMS modules are built.
 	rm -f $(dbgpkgdir)/usr/lib/debug/lib/modules/$(abi_release)-$*/build