Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
363c3e68
Commit
363c3e68
authored
8 years ago
by
Henryk Heisig
Committed by
John Crispin
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
adb: new package "Android Debug Bridge"
Signed-off-by:
Henryk Heisig
<
hyniu@o2.pl
>
parent
c8043137
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/utils/adb/Makefile
+52
-0
52 additions, 0 deletions
package/utils/adb/Makefile
package/utils/adb/patches/001-create_Makefile.patch
+45
-0
45 additions, 0 deletions
package/utils/adb/patches/001-create_Makefile.patch
with
97 additions
and
0 deletions
package/utils/adb/Makefile
0 → 100644
+
52
−
0
View file @
363c3e68
include
$(TOPDIR)/rules.mk
#Based on adb package from AUR https://aur.archlinux.org/packages/adb/ , reused Makefile
PKG_NAME
:=
adb
PKG_VERSION
:=
android.5.0.2_r1
PKG_RELEASE
:=
1
PKG_SOURCE_PROTO
:=
git
PKG_SOURCE_URL
:=
https://android.googlesource.com/platform/system/core
PKG_SOURCE_VERSION
:=
6fe92d1a3fb17545d82d020a3c995f32e6b71f9d
PKG_SOURCE_SUBDIR
:=
$(
PKG_NAME
)
-
$(
PKG_SOURCE_VERSION
)
PKG_SOURCE
:=
$(
PKG_SOURCE_SUBDIR
)
.tar.xz
PKG_BUILD_DIR
:=
$(
BUILD_DIR
)
/
$(
PKG_SOURCE_SUBDIR
)
PKG_MAINTAINER
:=
Henryk Heisig <hyniu@o2.pl>
include
$(INCLUDE_DIR)/package.mk
ifeq
($(CONFIG_BIG_ENDIAN),y)
TARGET_CFLAGS
+=
-DHAVE_BIG_ENDIAN
=
1
endif
TARGET_CFLAGS
+=
-D_GNU_SOURCE
define
Package/adb
SECTION
:=
utils
CATEGORY
:=
Utilities
TITLE
:=
Android Debug Bridge CLI tool
URL
:=
http://tools.android.com/
DEPENDS
:=
+zlib +libopenssl +libpthread
endef
define
Package/bridge/description
Android
Debug
Bridge
(adb)
is
a
versatile
command
line
tool
that
lets
you
communicate
with
an
emulator
instance
or
connected
Android-powered
device.
endef
# Nothing just to be sure
#define Build/Configure
#endef
define
Build/Compile
$(MAKE)
-C
$(PKG_BUILD_DIR)/adb/
\
$(TARGET_CONFIGURE_OPTS)
\
TARGET
=
Linux
\
CFLAGS
=
"
$(
TARGET_CFLAGS
)
"
\
LDFLAGS
=
"
$(
TARGET_LDFLAGS
)
"
endef
define
Package/adb/install
$(INSTALL_DIR)
$(1)/usr/bin
$(INSTALL_BIN)
$(PKG_BUILD_DIR)/adb/adb
$(1)/usr/bin/
endef
$(
eval
$(
call BuildPackage,adb
))
This diff is collapsed.
Click to expand it.
package/utils/adb/patches/001-create_Makefile.patch
0 → 100644
+
45
−
0
View file @
363c3e68
--- /dev/null
+++ b/adb/Makefile 2016-10-19 15:28:03.421194137 +0200
@@ -0,0 +1,42 @@
+SRCS+= adb.c
+SRCS+= adb_auth_host.c
+SRCS+= adb_client.c
+SRCS+= commandline.c
+SRCS+= console.c
+SRCS+= fdevent.c
+SRCS+= file_sync_client.c
+SRCS+= get_my_path_linux.c
+SRCS+= services.c
+SRCS+= sockets.c
+SRCS+= transport.c
+SRCS+= transport_local.c
+SRCS+= transport_usb.c
+SRCS+= usb_linux.c
+
+VPATH+= ../libcutils
+SRCS+= load_file.c
+SRCS+= socket_inaddr_any_server.c
+SRCS+= socket_local_client.c
+SRCS+= socket_local_server.c
+SRCS+= socket_loopback_client.c
+SRCS+= socket_loopback_server.c
+SRCS+= socket_network_client.c
+
+VPATH+= ../libzipfile
+SRCS+= centraldir.c
+SRCS+= zipfile.c
+
+CPPFLAGS+= -DADB_HOST=1
+CPPFLAGS+= -DHAVE_FORKEXEC=1
+CPPFLAGS+= -I.
+CPPFLAGS+= -I../include
+CPPFLAGS+= -D_FILE_OFFSET_BITS=64
+
+LIBS+= -lcrypto -lpthread -lz
+
+OBJS= $(SRCS:.c=.o)
+
+all: adb
+
+adb: $(OBJS)
+ $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment