diff options
author | 2018-05-21 02:32:05 -0500 | |
---|---|---|
committer | 2018-05-21 02:32:05 -0500 | |
commit | de531b876f93477aee3dfc95c42c0de8a12cf9e8 (patch) | |
tree | daab2eb7b3a7a5de8a02ecc7c5c4a33a7cd4eac2 | |
parent | fixed directory structure with package name; (diff) | |
download | ag-ops-de531b876f93477aee3dfc95c42c0de8a12cf9e8.tar.gz ag-ops-de531b876f93477aee3dfc95c42c0de8a12cf9e8.tar.bz2 ag-ops-de531b876f93477aee3dfc95c42c0de8a12cf9e8.zip |
netatop patch for correct ARCH detection
-rw-r--r-- | sys-process/netatop/netatop-2.0.ebuild | 3 | ||||
-rw-r--r-- | sys-process/netatop/netatop-karch.patch | 19 |
2 files changed, 22 insertions, 0 deletions
diff --git a/sys-process/netatop/netatop-2.0.ebuild b/sys-process/netatop/netatop-2.0.ebuild index a9a2c58..fa634ac 100644 --- a/sys-process/netatop/netatop-2.0.ebuild +++ b/sys-process/netatop/netatop-2.0.ebuild @@ -12,3 +12,6 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" + +CHOST_amd64=x86_64-unknown-linux-gnu +CHOST_x86=i686-unknown-linux-gnu diff --git a/sys-process/netatop/netatop-karch.patch b/sys-process/netatop/netatop-karch.patch new file mode 100644 index 0000000..0f100ea --- /dev/null +++ b/sys-process/netatop/netatop-karch.patch @@ -0,0 +1,19 @@ +diff --git a/module/Makefile b/module/Makefile +index 6994666..b9255ee 100644 +--- a/module/Makefile ++++ b/module/Makefile +@@ -2,12 +2,13 @@ + MYMODULE = netatop + KERNDIR = /lib/modules/$(shell uname -r)/build + THISDIR = $(shell pwd) ++ARCH = $(shell uname -m) + + obj-m := $(MYMODULE).o + + $(MYMODULE).ko: $(MYMODULE).c + echo start the make +- make -C $(KERNDIR) M=$(THISDIR) modules ++ make ARCH=$(ARCH) -C $(KERNDIR) M=$(THISDIR) modules + + clean: + rm -f *.o *.ko |