# Install the copyright information.
cp $(DEBIAN)/copyright debian/copyright
+ # Install the retpoline extractor.
+ cp $(DROOT)/scripts/retpoline-extract-one scripts/ubuntu-retpoline-extract-one
+
# If we have a reconstruct script use it.
[ -f $(DEBIAN)/reconstruct ] && bash $(DEBIAN)/reconstruct
distclean: clean
rm -rf $(DROOT)/control debian/changelog \
- debian/control debian/control.stub debian/copyright
+ debian/control debian/control.stub debian/copyright \
+ scripts/ubuntu-retpoline-extract-one
# Builds the image, arch headers and debug packages
include $(DROOT)/rules.d/2-binary-arch.mk
mkdir -p $(hdrdir)/arch/arm64/lib
cp $(builddir)/build-$*/arch/arm64/kernel/ftrace-mod.o $(hdrdir)/arch/arm64/kernel
endif
+ # Copy over the new retpoline extractor.
+ cp scripts/ubuntu-retpoline-extract-one $(hdrdir)/scripts
# Script to symlink everything up
$(SHELL) $(DROOT)/scripts/link-headers "$(hdrdir)" "$(indeppkg)" "$*"
# The build symlink
include/config/stack/validation.h)
ifdef CONFIG_RETPOLINE
-cmd_ubuntu_retpoline = $(CONFIG_SHELL) $(srctree)/debian/scripts/retpoline-extract-one $(@) $(<) "$(filter -m16 %code16gcc.h,$(a_flags))";
+cmd_ubuntu_retpoline = $(CONFIG_SHELL) $(srctree)/scripts/ubuntu-retpoline-extract-one $(@) $(<) "$(filter -m16 %code16gcc.h,$(a_flags))";
else
cmd_ubuntu_retpoline =
endif