Permalink
Browse files

Add patchdir with kernel specific patches (extracted from board name)

  • Loading branch information...
zyxmon committed Oct 20, 2018
1 parent 6e1ebb8 commit b7a3e2ad7876e5d178ed121609918911b276d248
Showing with 2 additions and 0 deletions.
  1. +1 −0 include/quilt.mk
  2. +1 −0 rules.mk
@@ -89,6 +89,7 @@ endef
define Build/Patch/Default
$(if $(QUILT),rm -rf $(PKG_BUILD_DIR)/patches; mkdir -p $(PKG_BUILD_DIR)/patches)
$(call PatchDir,$(PKG_BUILD_DIR),$(PATCH_DIR),)
$(call PatchDir,$(PKG_BUILD_DIR),$(PATCH_DIR)-$(KERNVER))
$(if $(QUILT),touch $(PKG_BUILD_DIR)/.quilt_used)
endef
@@ -63,6 +63,7 @@ CFLAGS:=
ARCH:=$(subst i486,i386,$(subst i586,i386,$(subst i686,i386,$(call qstrip,$(CONFIG_ARCH)))))
ARCH_PACKAGES:=$(call qstrip,$(CONFIG_TARGET_ARCH_PACKAGES))
BOARD:=$(call qstrip,$(CONFIG_TARGET_BOARD))
KERNVER:=$(strip $(lastword $(subst -, ,$(BOARD))))
SUBTARGET:=$(call qstrip,$(CONFIG_TARGET_SUBTARGET))
TARGET_OPTIMIZATION:=$(call qstrip,$(CONFIG_TARGET_OPTIMIZATION))
export EXTRA_OPTIMIZATION:=$(filter-out -fno-plt,$(call qstrip,$(CONFIG_EXTRA_OPTIMIZATION)))

0 comments on commit b7a3e2a

Please sign in to comment.