diff options
author | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2012-11-30 17:22:28 -0800 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2012-11-30 17:43:16 -0800 |
commit | 70e80075902d51cedc2b967679365b7898cf5e45 (patch) | |
tree | 1e8aa0232dc24791a98decdd4863acfdef5e91bc | |
parent | e284076a6bf21f7f8c20d596097d3028e2daa785 (diff) | |
download | alx-70e80075902d51cedc2b967679365b7898cf5e45.tar.gz |
alx: add a linux-backport target
This is an implicit target not exposed to the user
through the help menu but used within the port Makefile
to separate backporting from a clean linux-next target
build.
This also calls ./refresh-compat for us.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rw-r--r-- | target/linux/Makefile | 1 | ||||
-rw-r--r-- | target/linux/port.mk | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/target/linux/Makefile b/target/linux/Makefile index 6e03330..f649ce3 100644 --- a/target/linux/Makefile +++ b/target/linux/Makefile @@ -69,7 +69,6 @@ $(COMPAT_CONFIG): ; # to support the linux-next driver down to all supported # compat-drivers kernels. linux: $(CREL_CHECK) - @-patch -N -p6 -d src/ < patches/unified-drivers/network/0001-backport-alx.patch $(MAKE) -C $(KLIB_BUILD) M=$(PWD) modules @touch $@ diff --git a/target/linux/port.mk b/target/linux/port.mk index b083cb8..127ab16 100644 --- a/target/linux/port.mk +++ b/target/linux/port.mk @@ -11,11 +11,15 @@ linux-help: linux-src: @cp -a src $(TARGET_LINUX) +linux-backport: + @-cd $(TARGET_LINUX) ; \ + ./refresh-compat ; \ + patch -N -p6 -d src/ < patches/unified-drivers/network/0001-backport-alx.patch + # Uses compat-drivers to provide backport functionality # to support the linux-next driver down to all supported # compat-drivers kernels. -linux: - $(TARGET_LINUX)/refresh-compat +linux: linux-backport make -C $(TARGET_LINUX) install-linux: @@ -24,4 +28,4 @@ install-linux: uninstall-linux: $(MAKE) -C $(TARGET_LINUX) uninstall -.PHONY: linux-help linux-src linux install-linux uninstall-linux +.PHONY: linux-help linux-src linux-backport linux install-linux uninstall-linux |